Fix tests: "infix modifier required" and "operator modifier required" errors
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun main() {
|
||||
val testing = 5 compareTo 10
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun main() {
|
||||
val test = 5<caret> div 2
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
fun neq(a: Int, b: Int) {
|
||||
if (a equals<caret> b) {}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
fun neq(a: Int, b: Int) {
|
||||
if (b equals a) {}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
fun neq(a: Int, b: Int) {
|
||||
if (a identityEquals<caret> b) {}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
fun neq(a: Int, b: Int) {
|
||||
if (b identityEquals a) {}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
// IS_APPLICABLE: false
|
||||
class Foo() {
|
||||
fun cat(x: Int): Int {return x}
|
||||
infix fun cat(x: Int): Int {return x}
|
||||
}
|
||||
|
||||
fun main() {
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun new(x: Int, y: Int): Int {
|
||||
return y <caret>minus x
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
fun test(a: Int, b: Int): Int {
|
||||
return a <caret>plus b
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
fun test(a: Int, b: Int): Int {
|
||||
return b plus a
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun doSomething<T>(a: T) {}
|
||||
fun <T> doSomething(a: T) {}
|
||||
|
||||
fun main() {
|
||||
for (i in 1<caret>..10) {
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
// IS_APPLICABLE: false
|
||||
fun doSomething<T>(a: T) {}
|
||||
|
||||
fun main() {
|
||||
for (i in 1<caret> rangeTo 10) {
|
||||
doSomething("Hello World")
|
||||
}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
fun test(a: Int, b: Int): Int {
|
||||
return a <caret>times b
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
fun test(a: Int, b: Int): Int {
|
||||
return b times a
|
||||
}
|
||||
Reference in New Issue
Block a user