Do not show warning for mod from built-ins when LV=1.0

#KT-16372 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-03-13 13:51:51 +03:00
parent 071744a57f
commit e4188f889e
3 changed files with 31 additions and 2 deletions
@@ -24,5 +24,13 @@ fun local() {
}
fun noOverflow() {
(-1).<!DEPRECATION!>mod<!>(5)
(-1).mod(5)
}
fun builtIns(b: Byte, s: Short) {
var a = 1 % 2
a %= 3
1.mod(2)
b % s
1.0 % 2.0
}
@@ -1,5 +1,6 @@
package
public fun builtIns(/*0*/ b: kotlin.Byte, /*1*/ s: kotlin.Short): kotlin.Unit
public fun local(): kotlin.Unit
public fun noOverflow(): kotlin.Unit
public operator fun Baz.rem(/*0*/ x: kotlin.Int): kotlin.Unit