[Issue 4062] New: can call method without this pointer inside is()
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Apr 5 03:47:43 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4062
Summary: can call method without this pointer inside is()
Product: D
Version: 1.057
Platform: Other
OS/Version: All
Status: NEW
Keywords: accepts-invalid, rejects-valid
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: nfxjfg at gmail.com
--- Comment #0 from nfxjfg at gmail.com 2010-04-05 03:47:40 PDT ---
The following compiles. Not sure if this is a bug or a feature, so I'm
reporting this as a bug. Close as invalid if it's actually a feature.
class X {
void x(int a) {
}
}
void main() {
static assert(is( typeof({ X.x(1); }) ));
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list