digitalmars.D.bugs - [Issue 8251] New: Property function call without parenthesis fails when it's passed as template argument
- d-bugmail puremagic.com (46/46) Jun 16 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8251
- d-bugmail puremagic.com (10/10) Jun 16 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8251
- d-bugmail puremagic.com (12/12) Oct 07 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8251
- d-bugmail puremagic.com (12/12) Oct 07 2012 http://d.puremagic.com/issues/show_bug.cgi?id=8251
http://d.puremagic.com/issues/show_bug.cgi?id=8251 Summary: Property function call without parenthesis fails when it's passed as template argument Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: tommitissari hotmail.com --- Comment #0 from Tommi <tommitissari hotmail.com> 2012-06-16 09:39:21 PDT --- template MyValue(int value) { int MyValue = value; } struct MyStruct { static property int min() { return 123; } } property int globalMin() { return 456; } int main(string[] argv) { static assert(MyStruct.min == 123); // #0: OK static assert(globalMin == 456); // #1: OK int a = MyValue!(MyStruct.min()); // #2: OK int b = MyValue!(globalMin()); // #3: OK int c = MyValue!(MyStruct.min); // #4 int d = MyValue!(globalMin); // #5 return 0; } // #4: Error: template instance MyValue!(min) MyValue!(min) // does not match template declaration MyValue(int value) // #5: Error: template instance MyValue!(globalMin) MyValue!(globalMin) // does not match template declaration MyValue(int value) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 16 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8251 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |pull, rejects-valid --- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2012-06-16 10:57:11 PDT --- https://github.com/D-Programming-Language/dmd/pull/599 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 16 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8251 --- Comment #2 from github-bugzilla puremagic.com 2012-10-07 10:59:50 PDT --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/8e8751cdc5a7f24c8224c754d16b80025a51a7fb fix Issue 8251 - Property function call without parenthesis fails when it's passed as template argument https://github.com/D-Programming-Language/dmd/commit/f4ec500d57e53dde1fe5ce6091dec52ae649b044 Merge pull request #599 from 9rnsr/fix7174 Issue 7174,7274,7275,8251 - Cannot use property function call in some where -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 07 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8251 yebblies <yebblies gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |yebblies gmail.com Resolution| |FIXED --- Comment #3 from yebblies <yebblies gmail.com> 2012-10-08 05:53:10 EST --- https://github.com/D-Programming-Language/dmd/commit/f4ec500d57e53dde1fe5ce6091dec52ae649b044 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Oct 07 2012