author | duke |
Wed, 05 Jul 2017 23:01:50 +0200 | |
changeset 44228 | e46434c65a2b |
parent 14547 | 86d8d242b0c4 |
permissions | -rw-r--r-- |
/* * @test /nodynamiccopyright/ * @bug 8003280 * @summary Add lambda tests * check that recovery of speculative types is not attempted if receiver is erroneous * @compile/fail/ref=BadRecovery.out -XDrawDiagnostics BadRecovery.java */ class BadRecovery { interface SAM1 { void m(Object o); } void m(SAM1 m) { }; void test() { m((receiver, t) -> { receiver.someMemberOfReceiver(()->{ Object x = f; }); }); } }