D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 6575 - implementing interface method by overloaded arguments
Summary: implementing interface method by overloaded arguments
Status: RESOLVED INVALID
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: Other Linux
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-29 22:50 UTC by Mariusz Gliwiński
Modified: 2011-08-30 02:29 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Mariusz Gliwiński 2011-08-29 22:50:09 UTC
<code>
interface Interface
{
	void method(Interface);
}
class Class : Interface
{
	void method(Class) {}
}

void main() {}
</code>
<result>Error: class test.Class interface function Interface.method isn't implemented</result>

It should treat method as implemented, because Class implements Interface anyways.