Fix bogus integer overflow warning for 'mod' operator
#KT-15875 Fixed
This commit is contained in:
@@ -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)
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
package
|
||||
|
||||
public fun local(): kotlin.Unit
|
||||
public fun noOverflow(): kotlin.Unit
|
||||
public operator fun Baz.rem(/*0*/ x: kotlin.Int): kotlin.Unit
|
||||
|
||||
public final class Bar {
|
||||
|
||||
Reference in New Issue
Block a user