[TEST] Migrate duplicating javac tests to new test runners
Also minimize scope of DiagnosticUsingJavac tests to `compiler/testData/diagnostics/tests/javac`. This is fine since javac compilation mode is still not finished and no one not going to support it
This commit is contained in:
+31
@@ -0,0 +1,31 @@
|
||||
// FIR_IDENTICAL
|
||||
// FILE: a/k.kt
|
||||
package a
|
||||
|
||||
open class k {
|
||||
fun getK(): k? = null
|
||||
fun getI(): i? = null
|
||||
inner class i
|
||||
}
|
||||
|
||||
// FILE: a/y.java
|
||||
package a;
|
||||
|
||||
public class y {
|
||||
public k getK() { return null; }
|
||||
}
|
||||
|
||||
// FILE: a/x.java
|
||||
package a;
|
||||
|
||||
public class x extends k {
|
||||
public i getIFromJava() { return null; }
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
package a
|
||||
|
||||
fun test() = x().getK()
|
||||
fun test2() = x().getI()
|
||||
fun test3() = x().getIFromJava()
|
||||
fun test4() = y().getK()
|
||||
Reference in New Issue
Block a user