[Issue 18102] Filename accepted as UDA
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Dec 20 19:29:08 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=18102
johanengelen at weka.io changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
--- Comment #3 from johanengelen at weka.io ---
Thanks for explanation, of course, doh! :-)
The way I found out about this is that I did something similar to this:
```
// File weak.d
import ldc.attributes; //contains `weak` type
@weak void foo() {}
```
which then didn't apply `ldc.attributes.weak` to `foo`. The file name (-->
module name) "hijacked" the `weak` identifier...
I guess I should learn that the filename is part of the program.
Anyway, mark as resolved?
--
More information about the Digitalmars-d-bugs
mailing list