test/tools/javac/lambda/TargetType21.java

changeset 1480
db91d860156a
parent 1415
01c9d4161882
child 1510
7873d37f5b37
     1.1 --- a/test/tools/javac/lambda/TargetType21.java	Tue Jan 08 10:15:30 2013 +0100
     1.2 +++ b/test/tools/javac/lambda/TargetType21.java	Tue Jan 08 10:16:26 2013 +0100
     1.3 @@ -25,7 +25,7 @@
     1.4      <R,A> void call(SAM3<R,A> sam) { }
     1.5  
     1.6      void test() {
     1.7 -        call(x -> { throw new Exception(); }); //ok - resolves to call(SAM1)
     1.8 +        call(x -> { throw new Exception(); }); //ambiguous
     1.9          call(x -> { System.out.println(""); }); //ok - resolves to call(SAM2)
    1.10          call(x -> { return (Object) null; }); //error - call(SAM3) is not applicable because of cyclic inference
    1.11          call(x -> { return null; }); ////ok - resolves to call(SAM1)

mercurial