[Issue 8683] New: bad type resolution for template property functions
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Mon Sep 17 20:59:45 PDT 2012
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=8683
           Summary: bad type resolution for template property functions
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: ellery-newcomer at utulsa.edu
--- Comment #0 from Ellery Newcomer <ellery-newcomer at utulsa.edu> 2012-09-17 21:00:30 PDT ---
code:
@property int Foo()() {
    return 1;
}
@property int Goo() {
    return 1;
}
pragma(msg, typeof(Foo));
pragma(msg, typeof(Goo));
void main() {
    import std.stdio;
    writeln(Foo);
    writeln(Goo);
}
should spit out
int
int
does spit out
void
int
when compiled. 
prints 
1
1
when ran.
-- 
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