← Back to index
|
Original Bugzilla link
Bug 9837 – IFTI should consider enum base type
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-30T08:30:00Z
Last change time
2013-03-30T21:52:22Z
Keywords
pull, rejects-valid
Assigned to
nobody
Creator
k.hara.pg
Comments
Comment #0
by k.hara.pg — 2013-03-30T08:30:40Z
Test case: void main() { enum DA : string { a = "foo" } DA da; string bda = da; // works static assert(is(DA : string)); // works void fda1(string a) {} void fda2(T)(T[] a) {} fda1(da); // works fda2(da); // should work, but doesn't }
Comment #1
by k.hara.pg — 2013-03-30T09:05:18Z
https://github.com/D-Programming-Language/dmd/pull/1816
Comment #2
by github-bugzilla — 2013-03-30T14:31:40Z
Commits pushed to master at
https://github.com/D-Programming-Language/dmd
https://github.com/D-Programming-Language/dmd/commit/30f3945da66fdf019c491820d1f4286fa7f86318
fix Issue 9837 - IFTI should consider enum base type
https://github.com/D-Programming-Language/dmd/commit/33a3d4f41ba3845d1651e95999c326647fae933c
Merge pull request #1816 from 9rnsr/fix9837 Issue 9837 - IFTI should consider enum base type