logo       

[jira] Commented: (BOO-492) Can't compile class which implements IResourceR: msg#00076

lang.boo.devel

Subject: [jira] Commented: (BOO-492) Can't compile class which implements IResourceReader

[ http://jira.codehaus.org/browse/BOO-492?page=comments#action_46462 ]

Doug Holton commented on BOO-492:
---------------------------------

Look up explicit interface implementations, like here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csref/html/vcwlkexplicitinterfaceimplementationtutorial.asp

See also how the ResourceReader class implements this interface:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemResourcesResourceReaderMethodsTopic.asp


import System.Resources
import System.Collections

class Demo2(IResourceReader):
def IResourceReader.GetEnumerator() as IDictionaryEnumerator:
pass

def Close() :
pass

def Dispose():
pass

def IEnumerable.GetEnumerator() as IEnumerator:
pass


> Can't compile class which implements IResourceReader
> ----------------------------------------------------
>
> Key: BOO-492
> URL: http://jira.codehaus.org/browse/BOO-492
> Project: Boo
> Type: Bug
> Components: Compiler
> Versions: 0.6
> Environment: Sharpdevelop, dotnet
> Reporter: Tomislav Tustonic

>
>
> Compiler fails on compiling the class which implements
> System.Resources.IResourceReader (like this one)
> class Demo2(IResourceReader):
> def GetEnumerator():
> return null ;
> def Close() :
> pass
> def Dispose():
> pass
> with the message:
> 'classname.GetEnumerator' conflicts with inherited member
> System.Resources.IResourceReader.GetEnumerator

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise