managed-commons / stab-language

Automatically exported from code.google.com/p/stab-language
Apache License 2.0
5 stars 3 forks source link

More explicit message when cannot apply any method #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by stab.hac...@gmail.com on 23 Nov 2010 at 8:52