Implement lowering of some builtin operators. (#154)
* EQEQ * THROW_NPE Add test for (un)boxing `==` operands.
This commit is contained in:
committed by
GitHub
parent
0632a30eca
commit
b6561b13a4
@@ -0,0 +1,10 @@
|
||||
fun is42(x: Any?) {
|
||||
println(x == 42)
|
||||
println(42 == x)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
is42(16)
|
||||
is42(42)
|
||||
is42("42")
|
||||
}
|
||||
Reference in New Issue
Block a user