test/tools/javac/defaultMethods/Pos02.java

changeset 1415
01c9d4161882
parent 1393
d7d932236fee
child 2020
bb7271e64ef6
equal deleted inserted replaced
1414:843d3b191773 1415:01c9d4161882
23 23
24 /* 24 /*
25 * @test 25 * @test
26 * @summary test for explicit resolution of ambiguous default methods 26 * @summary test for explicit resolution of ambiguous default methods
27 * @author Maurizio Cimadamore 27 * @author Maurizio Cimadamore
28 * @compile -XDallowDefaultMethods Pos02.java 28 * @compile Pos02.java
29 */ 29 */
30 30
31 class Pos02 { 31 class Pos02 {
32 interface IA { default int m() { return Pos02.m1(this); } } 32 interface IA { default int m() { return Pos02.m1(this); } }
33 interface IB { default int m() { return Pos02.m2(this); } } 33 interface IB { default int m() { return Pos02.m2(this); } }

mercurial