Renamed test data folder
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
// ERROR: Type mismatch: inferred type is kotlin.String? but kotlin.String was expected
|
||||
import java.util.HashMap
|
||||
import kotlinApi.KotlinClass
|
||||
|
||||
internal class X {
|
||||
fun get(index: Int): Int {
|
||||
return 0
|
||||
}
|
||||
}
|
||||
|
||||
internal class C {
|
||||
fun foo(map: HashMap<String, String>): String {
|
||||
return map["a"]
|
||||
}
|
||||
|
||||
fun foo(x: X): Int {
|
||||
return x.get(0)
|
||||
}
|
||||
|
||||
fun foo(kotlinClass: KotlinClass): Int {
|
||||
return kotlinClass.get(0) // not operator!
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user