Test case: enum A { B } static assert(is(typeof(A.B) == A)); // succeeds static assert(is(typeof(A(A.B)) == A)); // fails
Covered by DMD's PR https://github.com/dlang/dmd/pull/6431
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/82f8a0aa9e5237eaa60ad2df77b83f8b14003115 Fix issue 16346 - Use the correct type when constructing an enum https://github.com/dlang/dmd/commit/560798618a16e17a6482c9f98f2ec74b1561973b Merge pull request #6431 from LemonBoy/b16346 Fix issue 16346 - Use the correct type when constructing an enum
Commits pushed to newCTFE at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/82f8a0aa9e5237eaa60ad2df77b83f8b14003115 Fix issue 16346 - Use the correct type when constructing an enum https://github.com/dlang/dmd/commit/560798618a16e17a6482c9f98f2ec74b1561973b Merge pull request #6431 from LemonBoy/b16346
Commits pushed to stable at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/82f8a0aa9e5237eaa60ad2df77b83f8b14003115 Fix issue 16346 - Use the correct type when constructing an enum https://github.com/dlang/dmd/commit/560798618a16e17a6482c9f98f2ec74b1561973b Merge pull request #6431 from LemonBoy/b16346