[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
+34
@@ -0,0 +1,34 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
||||
// FILE: A.java
|
||||
public class A {
|
||||
int foo() {return 1;}
|
||||
}
|
||||
|
||||
// FILE: 1.kt
|
||||
|
||||
fun foo() = ""
|
||||
|
||||
open class B: A() {
|
||||
init {
|
||||
val a: Int = foo()
|
||||
}
|
||||
}
|
||||
|
||||
fun test() {
|
||||
fun foo() = ""
|
||||
|
||||
class B: A() {
|
||||
init {
|
||||
val a: Int = foo() // todo
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class E: A() {
|
||||
fun foo() = A()
|
||||
|
||||
init {
|
||||
val a: A = foo() // todo: discuss
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user