Thread overview | ||||||
---|---|---|---|---|---|---|
|
October 20, 2011 [Issue 6832] New: Can't test objects wrapped with alias this | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=6832 Summary: Can't test objects wrapped with alias this Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: andrej.mitrovich@gmail.com --- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2011-10-19 20:44:16 PDT --- class Foo { } struct Bar { Foo foo; alias foo this; } void main() { Bar bar; bar = new Foo; // ok assert(bar !is null); // ng } -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 20, 2011 [Issue 6832] Can't test objects wrapped with alias this | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=6832 --- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2011-10-19 20:44:46 PDT --- test.d(9): Error: incompatible types for ((bar) !is (null)): 'Bar' and 'void*'(In reply to comment #0) > class Foo { } > struct Bar { Foo foo; alias foo this; } > void main() > { > Bar bar; > bar = new Foo; // ok > assert(bar !is null); // ng > } Error: incompatible types for ((bar) !is (null)): 'Bar' and 'void*' -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 21, 2011 [Issue 6832] Can't test objects wrapped with alias this | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=6832 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch, rejects-valid Platform|Other |All OS/Version|Windows |All --- Comment #2 from Kenji Hara <k.hara.pg@gmail.com> 2011-10-21 05:09:58 PDT --- https://github.com/D-Programming-Language/dmd/pull/466 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
November 16, 2011 [Issue 6832] Can't test objects wrapped with alias this | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | http://d.puremagic.com/issues/show_bug.cgi?id=6832 Walter Bright <bugzilla@digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla@digitalmars.com Resolution| |FIXED --- Comment #3 from Walter Bright <bugzilla@digitalmars.com> 2011-11-15 21:23:08 PST --- https://github.com/D-Programming-Language/dmd/commit/57db617ba6eec8ce67bb3f20d33022d534a5dba2 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation