Identity comparison for primitives is deprecated (warning).

Identity comparison for primitive vs non-primitive is a warning (due to implicit boxing).
This commit is contained in:
Dmitry Petrov
2016-12-19 16:06:40 +03:00
parent 434f33f9e9
commit 0fa2c54ae8
8 changed files with 186 additions and 4 deletions
+2 -2
View File
@@ -18,8 +18,8 @@ fun f(): Unit {
<error>x === "1"</error>
<error>x !== "1"</error>
x === 1
x !== 1
<warning>x === 1</warning>
<warning>x !== 1</warning>
x..2
x in 1..2