Skip to content

Commit e29c66d

Browse files
committed
Add test for #24074
1 parent 9ba8854 commit e29c66d

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

tests/pos/i24074/JavaPart.java

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
public class JavaPart {
2+
public interface A { }
3+
public interface B extends A {
4+
int onlyInB();
5+
}
6+
7+
public interface Lvl1 {
8+
A[] getData();
9+
}
10+
11+
public interface Lvl2 extends Lvl1 {
12+
@Override
13+
B[] getData();
14+
}
15+
16+
public interface Lvl3 extends Lvl2, Lvl1 { }
17+
}

tests/pos/i24074/Test.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
object Test:
2+
def test(lvl3: JavaPart.Lvl3): Unit =
3+
lvl3.getData.head.onlyInB()

0 commit comments

Comments
 (0)