Renamed test data folder

This commit is contained in:
Valentin Kipyatkov
2015-10-16 22:47:30 +03:00
parent dc909ac166
commit 4e73fe0f39
18 changed files with 114 additions and 114 deletions
@@ -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!
}
}