Thread overview |
---|
May 16, 2012 [Issue 8110] New: DMD tries to opCast when doing opEquals, and fails | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=8110 Summary: DMD tries to opCast when doing opEquals, and fails Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: meh@paranoici.org --- Comment #0 from meh. <meh@paranoici.org> 2012-05-16 13:48:09 PDT --- The attached code fails with the following errors: lol.d(14): Error: template instance opCast!(Object) opCast!(Object) does not match template declaration opCast(T : int) lol.d(14): Error: function expected before (), not a.opCast!(Object) of type void I've been told to open a bug about it, so here it is. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 16, 2012 [Issue 8110] DMD tries to opCast when doing opEquals, and fails | ||||
---|---|---|---|---|
| ||||
Posted in reply to meh. | http://d.puremagic.com/issues/show_bug.cgi?id=8110 --- Comment #1 from meh. <meh@paranoici.org> 2012-05-16 13:48:52 PDT --- Created an attachment (id=1105) Reduced testcase -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 19, 2012 [Issue 8110] DMD tries to opCast when doing opEquals, and fails | ||||
---|---|---|---|---|
| ||||
Posted in reply to meh. | http://d.puremagic.com/issues/show_bug.cgi?id=8110 --- Comment #2 from meh. <meh@paranoici.org> 2012-05-19 04:13:54 PDT --- If to avoid the first error I add an opCast!(Object), it works with == but fails in a weird way when casting. Following an attachment that shows said behavior. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
May 19, 2012 [Issue 8110] DMD tries to opCast when doing opEquals, and fails | ||||
---|---|---|---|---|
| ||||
Posted in reply to meh. | http://d.puremagic.com/issues/show_bug.cgi?id=8110 --- Comment #3 from meh. <meh@paranoici.org> 2012-05-19 04:16:56 PDT --- Created an attachment (id=1107) Reduced test case for weird cast behavior. -- 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