Bug 6070 – CTFE UFCS forward reference error

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2011-05-28T15:12:00Z
Last change time
2013-04-25T02:16:25Z
Keywords
CTFE, pull, rejects-valid
Assigned to
nobody
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2011-05-28T15:12:33Z
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[]
Comment #1 by k.hara.pg — 2013-04-24T21:03:07Z
Comment #2 by github-bugzilla — 2013-04-25T00:34:50Z
Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/699de273aa53ef07f4660a2c9ae3fa026aae5252 fix Issue 6070 - CTFE UFCS forward reference error https://github.com/D-Programming-Language/dmd/commit/9ff9c1374542d4e1a662056569b3c14224cd32ba Merge pull request #1931 from 9rnsr/fix6070 Issue 6070 - CTFE UFCS forward reference error