added 'class has Kotlin analog' error

to existing diagnostic tests
This commit is contained in:
Svetlana Isakova
2012-08-29 15:55:39 +04:00
parent a3194e9a46
commit 31831f2433
10 changed files with 24 additions and 24 deletions
@@ -3,7 +3,7 @@ package kt1778
fun main(args : Array<String>) {
val x = args[0]: Any
if(x is java.lang.CharSequence) {
if(x is <!CLASS_HAS_KOTLIN_ANALOG!>java.lang.CharSequence<!>) {
if ("a" == x) x.length() else x.length() // OK
if ("a" == x || "b" == x) x.length() else x.length() // < THEN ERROR
if ("a" == x && "a" == x) x.length() else x.length() // < ELSE ERROR