KT-3517 Can't call .equals() on a boolean

#KT-3517 Fixed
This commit is contained in:
Natalia Ukhorskaya
2013-11-18 19:24:50 +04:00
parent 8dfe771f8e
commit d241bfc138
3 changed files with 12 additions and 0 deletions
@@ -0,0 +1,6 @@
// KT-3517 Can't call .equals() on a boolean
fun box(): String {
val a = false
return if (true.equals(true) && a.equals(false)) "OK" else "fail"
}