Bug 1158 – Missing line number: invalid mixin outside function scope
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P3
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
All
Creation time
2007-04-17T12:41:00Z
Last change time
2014-02-16T15:25:32Z
Keywords
diagnostic
Assigned to
bugzilla
Creator
matti.niemenmaa+dbugzilla
Comments
Comment #0 by matti.niemenmaa+dbugzilla — 2007-04-17T12:41:24Z
mixin(2);
The above line generates the error "attribute argument to mixin must be a string, not (2)", but includes module and line number information only if placed within function scope.
Comment #1 by matti.niemenmaa+dbugzilla — 2007-04-17T12:50:57Z
Also happens with syntactically valid mixins resulting in invalid statements:
mixin("2");