Remove mod function usage from tests
#KT-26654
This commit is contained in:
+2
-6
@@ -23,14 +23,10 @@ fun local() {
|
||||
operator fun String.remAssign(x: Int) {}
|
||||
}
|
||||
|
||||
fun noOverflow() {
|
||||
(-1).mod(5)
|
||||
}
|
||||
|
||||
fun builtIns(b: Byte, s: Short) {
|
||||
var a = 1 % 2
|
||||
a %= 3
|
||||
1.mod(2)
|
||||
var d = 5
|
||||
d %= 3
|
||||
b % s
|
||||
1.0 % 2.0
|
||||
}
|
||||
@@ -23,14 +23,10 @@ fun local() {
|
||||
<!UNSUPPORTED_FEATURE!>operator<!> fun String.remAssign(x: Int) {}
|
||||
}
|
||||
|
||||
fun noOverflow() {
|
||||
(-1).mod(5)
|
||||
}
|
||||
|
||||
fun builtIns(b: Byte, s: Short) {
|
||||
var a = 1 % 2
|
||||
a %= 3
|
||||
1.mod(2)
|
||||
b % s
|
||||
1.0 % 2.0
|
||||
var a = 1 <!UNRESOLVED_REFERENCE!>%<!> 2
|
||||
var d = 5
|
||||
d <!UNRESOLVED_REFERENCE!>%=<!> 3
|
||||
b <!UNRESOLVED_REFERENCE!>%<!> s
|
||||
1.0 <!UNRESOLVED_REFERENCE!>%<!> 2.0
|
||||
}
|
||||
@@ -2,7 +2,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
|
||||
|
||||
public final class Bar {
|
||||
|
||||
Reference in New Issue
Block a user