blob: e6ace6556e4d2bf79f5e9b96f26f1d13cce63ba3 [file]
// RUN_PIPELINE_TILL: CODEGEN
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)
}
}
/* GENERATED_FIR_TAGS: callableReference, classDeclaration, comparisonExpression, functionDeclaration, functionalType,
ifExpression, integerLiteral, isExpression, localFunction, localProperty, nullableType, propertyDeclaration, smartcast */