298a075381
Removed declaration for functions: TODO, run, with, apply, let.
15 lines
204 B
Kotlin
Vendored
15 lines
204 B
Kotlin
Vendored
// !CHECK_TYPE
|
|
|
|
//KT-1944 Inference fails on run()
|
|
package j
|
|
|
|
class P {
|
|
var x : Int = 0
|
|
private set
|
|
|
|
fun foo() {
|
|
val r = run {x = 5} // ERROR
|
|
checkSubtype<Unit>(r)
|
|
}
|
|
}
|