Infix calls and nullable receivers

This commit is contained in:
Andrey Breslav
2011-09-06 13:27:33 +04:00
parent c1dbe9eee2
commit 3242c70c6f
3 changed files with 13 additions and 10 deletions
@@ -32,7 +32,7 @@ fun f(): Unit {
x !== 1
x<error>..</error>2
x <error>in</error> 1..2
<error>x</error> in 1..2
val y : Boolean? = true
false || <error>y</error>
@@ -4,6 +4,6 @@ fun main(args: Array<String>) {
val command : Any = 1
command<warning>?.<?warning>equals(null)
command<warning>?.</warning>equals(null)
command.equals(null)
}