Duplicate identifier ? (Generics)

Monkey Forums/Monkey Programming/Duplicate identifier ? (Generics)

Rushino(Posted 2013) [#1]
Is there a reason why i get duplicate identifier error T1 with this piece of code ?

Field AvailableOperations:IntMap<TestBase<Int, String>> <- Error.

... 

Class TestBase<T1, T2>
	Method New()
	End
	
	Method T1:Test1()
	End
	
	Method T2:Test2()
	End
End


Normally this should work.. TestBase<Int, String> is a valid type.


Jesse(Posted 2013) [#2]
shouldn't it be?

test1:T1()
test2:T2()



?


Rushino(Posted 2013) [#3]
Nevermind. Was my mistake.. Yeah exactly lol I am doing too much C# theses days. :)