Bug 19972 – no shadowing error for nested functions

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-06-16T02:13:58Z
Last change time
2024-12-13T19:04:00Z
Assigned to
No Owner
Creator
Nicholas Wilson
Moved to GitHub: dmd#19585 →

Comments

Comment #0 by iamthewilsonator — 2019-06-16T02:13:58Z
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
Comment #1 by robert.schadek — 2024-12-13T19:04:00Z
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