wrappers instead of conversions in binary expressions
This commit is contained in:
committed by
Pavel V. Talanov
parent
512e12d26c
commit
d5900a58b2
@@ -4,7 +4,7 @@ open fun test() : String? {
|
||||
var s1 : String? = ""
|
||||
var s2 : String? = ""
|
||||
var s3 : String? = ""
|
||||
if ((s1?.isEmpty()).sure() && (s2?.isEmpty()).sure())
|
||||
if (s1?.isEmpty()!! && s2?.isEmpty()!!)
|
||||
return "OK"
|
||||
if ((s1?.isEmpty()).sure() && (s2?.isEmpty()).sure() && (s3?.isEmpty()).sure())
|
||||
return "OOOK"
|
||||
|
||||
Reference in New Issue
Block a user