Load special override as HIDDEN in case of signature clash

#KT-10151 Fixed
This commit is contained in:
Denis Zharkov
2015-12-09 14:09:38 +03:00
parent 45c0bc3610
commit 871fe7680b
40 changed files with 445 additions and 51 deletions
+10 -4
View File
@@ -15,11 +15,17 @@ private object EmptyList : List<Nothing> {
}
fun box(): String {
val n = EmptyList as List<Any?>
val n = EmptyList as List<String>
if (n.contains(null)) return "fail 1"
if (n.indexOf(null) != -1) return "fail 2"
if (n.lastIndexOf(null) != -1) return "fail 3"
if (n.contains("")) return "fail 1"
if (n.indexOf("") != -1) return "fail 2"
if (n.lastIndexOf("") != -1) return "fail 3"
val nullAny = EmptyList as List<Any?>
if (nullAny.contains(null)) return "fail 4"
if (nullAny.indexOf(null) != -1) return "fail 5"
if (nullAny.lastIndexOf(null) != -1) return "fail 6"
return "OK"
}