Bug 17471 – deprecated("message") does not work inside function

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2017-06-06T21:12:00Z
Last change time
2017-06-06T21:13:27Z
Assigned to
nobody
Creator
andrei

Comments

Comment #0 by andrei — 2017-06-06T21:12:04Z
Repro: void main() { deprecated("a") int x; } results in: test.d(3): Error: basic type expected, not ( test.d(3): Error: unexpected ( in declarator test.d(3): Error: basic type expected, not "a" test.d(3): Error: found '"a"' when expecting ')' test.d(3): Error: no identifier for declarator _error_(_error_) test.d(3): Error: semicolon expected following function declaration test.d(3): Error: found ')' instead of statement
Comment #1 by andrei — 2017-06-06T21:13:27Z
*** This issue has been marked as a duplicate of issue 17211 ***