KT-10667 Fix building qualified references to nested type of built-ins, e.g. Map.Entry
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package foo
|
||||
|
||||
class EntryImplementor() : Map.Entry<String, String> {
|
||||
override val key: String
|
||||
get() = "foo"
|
||||
override val value: String
|
||||
get() = "bar"
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
val entry = EntryImplementor()
|
||||
var stringResult = "${entry.key}${entry.value}"
|
||||
if (stringResult != "foobar") return "failed1: $stringResult"
|
||||
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user