[FIR-TEST] Add new testdata generated after changes in previous commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
open class Base
|
||||
class Derived: Base()
|
||||
|
||||
fun bar(derived: Derived) = derived
|
||||
|
||||
fun trans(n: Int, f: (Int) -> Boolean) = if (f(n)) n else null
|
||||
|
||||
fun foo() {
|
||||
val base: Base = Derived()
|
||||
if (base is Derived) {
|
||||
fun can(n: Int) = n > 0
|
||||
trans(42, ::can)
|
||||
bar(base)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user