bcc8802014
Expression will be checked against expected type later. Theoretically, this is not very good, but it aligns with the old inference, plus it helps avoiding multiple type mismatch diagnostics.
10 lines
170 B
Kotlin
Vendored
10 lines
170 B
Kotlin
Vendored
// !CHECK_TYPE
|
|
// !WITH_NEW_INFERENCE
|
|
interface Tr<T> {
|
|
var v: Tr<T>
|
|
}
|
|
|
|
fun test(t: Tr<*>) {
|
|
<!SETTER_PROJECTED_OUT!>t.v<!> = t
|
|
t.v checkType { _<Tr<*>>() }
|
|
} |