http://d.puremagic.com/issues/show_bug.cgi?id=3643
Summary: Compiler error on obtaining typeid of a property
Product: D
Version: 2.036
Platform: x86
OS/Version: Windows
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Phil Deets <[email protected]> 2009-12-23 18:44:45 PST ---
See comments in the code below. I don't think this code should get an error.
import std.stdio;
class A {
@property int f() { return 2; }
}
int main() {
A a = new A;
writeln(typeid(a.f())); // works
writeln(typeid(a.f)); // Error: no type for typeid(f)
return 0;
}
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------