Thread overview
[Issue 8787] New: Virtual not abstract methods in interfaces error message
Dec 28, 2012
Andrej Mitrovic
Jan 14, 2013
Kenji Hara
October 09, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8787

           Summary: Virtual not abstract methods in interfaces error
                    message
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: diagnostic
          Severity: minor
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: bearophile_hugs@eml.cc


--- Comment #0 from bearophile_hugs@eml.cc 2012-10-09 01:45:24 PDT ---
interface Foo {
    void bar() {}
}
void main() {}


DMD 2.061alpha gives:

temp.d(2): Error: function temp.Foo.bar function body is not abstract in
interface Foo

But I suggest an error message like this because final methods are allowed in D2 interfaces:

temp.d(2): Error: function temp.Foo.bar function body is not abstract or final
in interface Foo

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
December 28, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=8787


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |andrej.mitrovich@gmail.com
           Platform|x86                         |All
         AssignedTo|nobody@puremagic.com        |andrej.mitrovich@gmail.com
         OS/Version|Windows                     |All


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2012-12-27 17:14:05 PST ---
Both are misleading because there's no such thing as an "abstract function body". A body is never abstract, only the function is.

https://github.com/D-Programming-Language/dmd/pull/1416

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 14, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8787



--- Comment #2 from github-bugzilla@puremagic.com 2013-01-13 23:12:21 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/185f27951638a3f3499c4fd3975dd1962d80c3cd
Fixes Issue 8787 - Better diagnostic on non-final interface function with a
body.

https://github.com/D-Programming-Language/dmd/commit/67ca915e3d89db564217bd6452de6c6799c01f6c Merge pull request #1416 from AndrejMitrovic/Fix8787

Issue 8787 - Better diagnostic on non-final interface function with a body

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
January 14, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8787


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: -------
February 11, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8787



--- Comment #3 from github-bugzilla@puremagic.com 2013-02-11 12:20:16 PST ---
Commits pushed to staging at https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/185f27951638a3f3499c4fd3975dd1962d80c3cd
Fixes Issue 8787 - Better diagnostic on non-final interface function with a
body.

https://github.com/D-Programming-Language/dmd/commit/67ca915e3d89db564217bd6452de6c6799c01f6c Merge pull request #1416 from AndrejMitrovic/Fix8787

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 12, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=8787



--- Comment #4 from github-bugzilla@puremagic.com 2013-02-11 22:49:41 PST ---
Commits pushed to https://github.com/D-Programming-Language/dmd

https://github.com/D-Programming-Language/dmd/commit/185f27951638a3f3499c4fd3975dd1962d80c3cd
Fixes Issue 8787 - Better diagnostic on non-final interface function with a
body.

https://github.com/D-Programming-Language/dmd/commit/67ca915e3d89db564217bd6452de6c6799c01f6c Merge pull request #1416 from AndrejMitrovic/Fix8787

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------