Bug 7974 – forward reference of mixin declaration

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-04-23T08:24:00Z
Last change time
2012-04-24T00:33:13Z
Assigned to
nobody
Creator
code

Comments

Comment #0 by code — 2012-04-23T08:24:40Z
cat > bug.d << CODE mixin template mix() { uint _x; } struct Foo { immutable Foo fa = Foo(0); this(uint x) { _x = x; } mixin mix!(); } CODE dmd -c bug -------- bug.d(12): Error: couldn't find field _x of type uint in Foo() bug.d(8): called from here: Foo().this(0u) --------
Comment #1 by github-bugzilla — 2012-04-23T23:25:43Z
Comment #2 by github-bugzilla — 2012-04-23T23:26:00Z