blob: 3958807fdbfd6a63482ce74ea53df848f21c1fad [file]
// RUN_PIPELINE_TILL: FRONTEND
// ISSUE: KT-67374
object Some
inline fun <reified T> test_1(): T? {
if (Some is T) return Some
return null
}
fun test_2(): CharSequence? {
if (<!IMPOSSIBLE_IS_CHECK_ERROR!>Some is CharSequence<!>) return Some
return null
}
typealias Other = Some
inline fun <reified T> test_3(): T? {
if (Other is T) return Other
return null
}
fun test_4(): CharSequence? {
if (<!IMPOSSIBLE_IS_CHECK_ERROR!>Other is CharSequence<!>) return Other
return null
}
/* GENERATED_FIR_TAGS: functionDeclaration, ifExpression, inline, intersectionType, isExpression, nullableType,
objectDeclaration, reified, smartcast, typeAliasDeclaration, typeParameter */