a4c5e1bc87
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.
11 lines
127 B
Kotlin
Vendored
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
|
|
}
|
|
}
|
|
|