Type argument is not a valid substitute ...

25 views
Skip to first unread message

Manfred Schäfer

unread,
Mar 28, 2013, 4:54:42 PM3/28/13
to xtend...@googlegroups.com
Hi,

i hava a static Method in java like

public static <T extends Comparable<T>> Foo<T> baz() { ...


When i try the following in XTEND:

val x = <File>baz();

i get an 'Type argument is not a valid substitute' error, but File does implement Comparable<File>!? (BTW: Same error with String)


did i got anything wrong?

Manfred

Sebastian Zarnekow

unread,
Mar 28, 2013, 9:39:05 PM3/28/13
to xtend...@googlegroups.com, xtend...@googlegroups.com
Hi Manfred,

looks like a bug to me. Could you please file (no pun intended) a ticket?

Thanks,
Sebastian

--
You received this message because you are subscribed to the Google Groups "Xtend Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xtend-lang+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages