float x; void test() { short x; void nested() const { int x; pragma(msg, typeof(.x)); // float - fine disambiguated with leading . pragma(msg, typeof( x)); // int - ?? should give error } } this should give an error that the int x shadows the short x
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19585 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB