[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
// KT-2225 Object expression delegation parameter should be checked with data flow info
|
||||
|
||||
interface A {
|
||||
fun foo() : Int
|
||||
}
|
||||
|
||||
class B : A {
|
||||
override fun foo() = 10
|
||||
}
|
||||
fun foo(b: B?) : Int {
|
||||
if (b == null) return 0
|
||||
val o = object : A by b { //no info about b not null check
|
||||
}
|
||||
return o.foo()
|
||||
}
|
||||
Reference in New Issue
Block a user