← Back to index
|
Original Bugzilla link
Bug 5887 – with statement doesn't work with subtyping
Status
RESOLVED
Resolution
DUPLICATE
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
All
Creation time
2011-04-25T17:34:00Z
Last change time
2011-09-24T16:58:16Z
Assigned to
nobody
Creator
andrej.mitrovich
Comments
Comment #0
by andrej.mitrovich — 2011-04-25T17:34:53Z
struct Foo { void test() {} } struct Bar { Foo foo; alias foo this; } void main() { Bar bar; bar.test(); // ok with(bar) { test(); // Error: undefined identifier test } }
Comment #1
by andrej.mitrovich — 2011-09-24T16:58:16Z
*** This issue has been marked as a duplicate of issue 6711 ***