[Issue 17911] New: UDA to scope cause Error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Oct 17 14:49:35 UTC 2017
https://issues.dlang.org/show_bug.cgi?id=17911
Issue ID: 17911
Summary: UDA to scope cause Error
Product: D
Version: D2
Hardware: x86_64
OS: Windows
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: timosesu at gmail.com
The example for user defined attributes (UDA) on
https://dlang.org/spec/attribute.html#uda does not work:
@(1)
{
@(2) int a; // has UDA's (1, 2)
@("string") int b; // has UDA's (1, "string")
}
causes:
src\app.d(59,5): Error: basic type expected, not {
src\app.d(59,5): Error: no identifier for declarator _error_
The same is caused by
@(1) {}
DMD32 D Compiler v2.074.0
--
More information about the Digitalmars-d-bugs
mailing list