Bug 1431 – Forward reference related with string mixins

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2007-08-18T17:47:00Z
Last change time
2014-02-16T15:26:22Z
Keywords
rejects-valid
Assigned to
bugzilla
Creator
keyer
Blocks
340

Comments

Comment #0 by keyer — 2007-08-18T17:47:29Z
char[] test(){ return `int i;`; } class Foo{ Bar bar; // works fine when commented out mixin(test()); struct Bar {} } dmd says: main.d: variable main.Foo.i conflicts with variable main.Foo.i at main.d like if mixin was pasted two times. Bug is not crytical but irritating ;)
Comment #1 by smjg — 2008-11-13T18:57:05Z
WFM under DMD 1.036 Windows.