February 14, 2005 with alias - assert at line 2616 in 'mtype.c' | ||||
---|---|---|---|---|
| ||||
class A { int foo; } class B { A a; } void main() { B b; with (b) { alias a.foo bar; } } DMD 0.113 outputs: Assertion failure: '!scopesym || !scopesym->isWithScopeSymbol()' on line 2616 in file 'mtype.c' abnormal program termination |
February 18, 2005 Re: with alias - assert at line 2616 in 'mtype.c' | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ilya Zaitseff Attachments: | Ilya Zaitseff wrote: | class A | { | int foo; | } | | class B | { | A a; | } | | void main() | { | B b; | with (b) | { | alias a.foo bar; | } | } | | DMD 0.113 outputs: | | Assertion failure: '!scopesym || !scopesym->isWithScopeSymbol()' on | line 2616 in file 'mtype.c' | | abnormal program termination Added to DStress as http://dstress.kuehne.cn/run/alias_15.d http://dstress.kuehne.cn/run/alias_16.d Note: This alias is treated as an type aliasing but should be treated as an alias declaration. Thomas |
Copyright © 1999-2021 by the D Language Foundation