``` onlineapp.d(12): Error: first argument is not a symbol ``` ``` module a; import std; @("hi") void main() { alias THIS_MODULE = a; static foreach (member; __traits(allMembers, THIS_MODULE)) { writeln("member: ", member); static foreach (attr; __traits(getAttributes, __traits(getMember, THIS_MODULE, member))) { writeln("\tattribute: ", attr); } } } enum :int { A, B, C } // commenting this out fixes it alias MyEnum = int; ``` Expected behavior: It should ignore either ignore the alias and compile, or support the alias
@maxhaton created dlang/dmd pull request #14298 "Fix Issue 23241 - Consider types with no symbol (e.g. int) to have no…" fixing this issue: - Fix Issue 23241 - Consider types with no symbol (e.g. int) to have no attributes https://github.com/dlang/dmd/pull/14298
dlang/dmd pull request #14298 "Fix Issue 23241 - Consider types with no symbol (e.g. int) to have no…" was merged into master: - 251dbdf030280add92afea6fef45482926cc955d by mhh: Fix Issue 23241 - Consider types with no symbol (e.g. int) to have no attributes https://github.com/dlang/dmd/pull/14298