/* * Ident: @(#)lmbd13101m0055.java generated from: %W% %E% * * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package javasoft.sqe.tests.lang.lmbd131.lmbd13101m0055; import java.io.PrintStream; class MyTest extends Test { MyTest(Test t) { n = 5;} } class Test { static int n = 0; Test(Test t) { n = 5;} Test() {} Test(Object t) { n = 1;} } interface SAM { MyTest m(Test t); } interface Tester { int ifoo(); } interface MyTester extends Tester { SAM s = MyTest::new; } public class lmbd13101m0055 { public static void main(String argv[]) { System.exit(run(argv, System.out) + 95/*STATUS_TEMP*/); } public static int run(String argv[], PrintStream out) { MyTest test = MyTester.s.m(new Test()); if (test.n == 5) { return 0/*STATUS_PASSED*/; } else { return 2/*STATUS_FAILED*/; } } }