The example:
[StaticClass]
public class Main {
public static void main( String[] args){
Foo<Integer> foo = new Foo<Integer>();
foo.bar(3.3);
}
}
public class Foo<T> {
void bar(T item){
}
}
Generates the message: error 237: Cannot apply invocation to any method,
delegate or extension method
but in java, the error message is more explicit:
The method bar(Integer) in the type Foo<Integer> is not applicable for the
arguments (double)
Original issue reported on code.google.com by ice.ta...@gmail.com on 9 Jul 2010 at 10:59
Original issue reported on code.google.com by
ice.ta...@gmail.com
on 9 Jul 2010 at 10:59