[Issue 6070] New: CTFE UFCS forward reference error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 28 15:16:52 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=6070

           Summary: CTFE UFCS forward reference error
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: andrej.mitrovich at gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2011-05-28 15:12:33 PDT ---
enum test = ["test"].foo();
string foo(string[] s) { return ""; }

void main() { }

test.d(1): Error: function test.foo (string[] s) is not callable using argument
types (string[])
test.d(1): Error: forward reference to type string[]
test.d(1): Error: cannot implicitly convert expression (["test"]) of type
string[] to string[]

-- 
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