9 lines
274 B
Kotlin
Vendored
9 lines
274 B
Kotlin
Vendored
// PROBLEM: none
|
|
// WITH_RUNTIME
|
|
// ERROR: Type mismatch: inferred type is List<{Comparable<{Int & String}> & java.io.Serializable}> but List<String> was expected
|
|
// COMPILER_ARGUMENTS: -XXLanguage:+NewInference
|
|
|
|
fun test() {
|
|
var list = listOf("")
|
|
list <caret>+= 1
|
|
} |