We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ba8854 commit b2452cdCopy full SHA for b2452cd
tests/pos/i24074/JavaPart.java
@@ -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
@@ -0,0 +1,6 @@
+// trait Test extends JavaPart.Lvl3
+// object TestImpl extends Test:
+// def getData(): Array[JavaPart.B] = ???
+object Test:
+ def test(lvl3: JavaPart.Lvl3): Unit =
+ lvl3.getData.head.onlyInB()
0 commit comments