[Issue 14128] wrong alias
https://issues.dlang.org/show_bug.cgi?id=14128 Basile-z changed: What|Removed |Added CC||edi33...@gmail.com --- Comment #2 from Basile-z --- *** Issue 19786 has been marked as a duplicate of this issue. *** --
[Issue 14128] wrong alias
https://issues.dlang.org/show_bug.cgi?id=14128 Basile-z changed: What|Removed |Added See Also||https://issues.dlang.org/sh ||ow_bug.cgi?id=19786 --
[Issue 14128] wrong alias
https://issues.dlang.org/show_bug.cgi?id=14128 Basile-z changed: What|Removed |Added Keywords||accepts-invalid CC||b2.t...@gmx.com Hardware|x86_64 |All OS|Linux |All --
[Issue 14128] wrong alias
https://issues.dlang.org/show_bug.cgi?id=14128 --- Comment #1 from Basile-z --- reduced a bit: --- struct Foo { int v; void test(Foo that) const { alias a = this.v; alias b = that.v; assert ( !is ); } } void main () { Foo a = Foo(1); Foo b = Foo(2); a.test(b); } --- The problem is that `that.v` is an expression and this should not be allowed as alias RHS. The compiler think that the current `this` is also the one required for `that`. --
[Issue 14128] wrong alias
https://issues.dlang.org/show_bug.cgi?id=14128 Andrei Alexandrescu and...@erdani.com changed: What|Removed |Added Version|D1 D2 |D2 --
[Issue 14128] wrong alias
https://issues.dlang.org/show_bug.cgi?id=14128 Vlad Levenfeld vlevenf...@gmail.com changed: What|Removed |Added CC||vlevenf...@gmail.com --