You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Nicholas Wilson (@thewilsonator) reported this on 2019-06-16T02:13:58Z
Transferred from https://issues.dlang.org/show_bug.cgi?id=19972
Description
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 xThe text was updated successfully, but these errors were encountered: