Fix bogus warning about numeric overflow when value is zero

#KT-17149 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-03-29 21:56:22 +03:00
parent 3820c7653b
commit fd6ed5aa72
4 changed files with 30 additions and 9 deletions
@@ -0,0 +1,11 @@
val zero = 0
fun test() {
-0
-0L
-0.0
-(1 - 1)
-zero
+0
}
@@ -0,0 +1,4 @@
package
public val zero: kotlin.Int = 0
public fun test(): kotlin.Unit