8 lines
212 B
Kotlin
8 lines
212 B
Kotlin
open class X(val s: String)
|
|
|
|
fun f(a: String?) {
|
|
if (a != null) {
|
|
object : X(<!DEBUG_INFO_AUTOCAST!>a<!>) { // Type mismatch: inferred type is jet.String? but jet.String was expected
|
|
}
|
|
}
|
|
} |