Thread overview | ||||||
---|---|---|---|---|---|---|
|
September 08, 2012 [Issue 8629] New: UFCS resolution prints fake error | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=8629 Summary: UFCS resolution prints fake error Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: diagnostic Severity: trivial Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: k.hara.pg@gmail.com --- Comment #0 from Kenji Hara <k.hara.pg@gmail.com> 2012-09-08 00:08:15 PDT --- Following code compilation fails with -property switch. ---- struct S {} auto gunc(S s, int n) { return 13; } @property grop(S s, int n) { return 14; } void main() { S s; assert((s.gunc = 1) == 13); // line 9 assert((s.grop = 1) == 14); // line 10 } output: ---- test.d(9): Error: not a property s.gunc test.d(10): Error: function test.grop (S s, int n) is not callable using argument types (S) test.d(10): Error: expected 2 function arguments, not 1 ---- But if you comment out line 9, you can succeed to compile. Then, the line 10 error for the code is *fake*. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 08, 2012 [Issue 8629] UFCS resolution prints fake error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kenji Hara | http://d.puremagic.com/issues/show_bug.cgi?id=8629 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull --- Comment #1 from Kenji Hara <k.hara.pg@gmail.com> 2012-09-08 00:14:02 PDT --- https://github.com/D-Programming-Language/dmd/pull/1106 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
September 10, 2012 [Issue 8629] UFCS resolution prints fake error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kenji Hara | http://d.puremagic.com/issues/show_bug.cgi?id=8629 --- Comment #2 from github-bugzilla@puremagic.com 2012-09-10 04:30:28 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/cc4598aa7996bb31982cd90920c4ec37d1711b44 fix Issue 8629 - UFCS resolution prints fake error https://github.com/D-Programming-Language/dmd/commit/caf289137881ec290166afa72bc787bfbd6bd970 Merge pull request #1106 from 9rnsr/fix8629 Issue 8629 - UFCS resolution prints fake error -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
November 15, 2012 [Issue 8629] UFCS resolution prints fake error | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kenji Hara | http://d.puremagic.com/issues/show_bug.cgi?id=8629 Kenji Hara <k.hara.pg@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- 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