Fix bogus integer overflow warning for 'mod' operator

#KT-15875 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2017-01-24 17:13:42 +03:00
parent f9e552e3c2
commit 68b223211c
5 changed files with 31 additions and 3 deletions
@@ -21,4 +21,8 @@ class Baz {
fun local() {
<!UNSUPPORTED_FEATURE!>operator<!> fun Int.rem(x: Int) {}
<!UNSUPPORTED_FEATURE!>operator<!> fun String.remAssign(x: Int) {}
}
fun noOverflow() {
(-1).<!DEPRECATION!>mod<!>(5)
}