Files
Denis.Zharkov a4c5e1bc87 K2: Unwrap fake overrides before using them as DFA identifiers
It's necessary because even for stable a.b.c.d we can't guarantee that
this reference will always point to the same symbol because
different capture type instantiations generate different scopes
with different resulting symbol instances.
2023-02-15 08:13:53 +00:00

11 lines
127 B
Kotlin
Vendored

// ISSUE: KT-25432
class Data<T>(val s: T)
fun test(d: Data<out Any>) {
if (d.s is String) {
d.s.length
}
}