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

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

void main() { }

test.d(1): Error: function (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:
------- You are receiving this mail because: -------

Reply via email to