blob: 34c40b80ab4d675f17b148eaf9be5224a5a99fac [file]
// RUN_PIPELINE_TILL: CODEGEN
// ISSUE: KT-87368
// RENDER_DIAGNOSTICS_FULL_TEXT
class KotlinType
data class LocalClass(val type: KotlinType)
interface MyInterface
fun testIntersection(value: Any) {
if (value is LocalClass) {
if (<!IMPOSSIBLE_IS_CHECK_WARNING!>value is MyInterface<!>) {
val type: KotlinType = value.type
}
}
}
/* GENERATED_FIR_TAGS: classDeclaration, data, functionDeclaration, ifExpression, interfaceDeclaration, intersectionType,
isExpression, localProperty, primaryConstructor, propertyDeclaration, smartcast */