Fix tests: "infix modifier required" and "operator modifier required" errors

This commit is contained in:
Yan Zhulanow
2015-11-26 15:56:56 +03:00
parent a3ff3ffc45
commit 9d1af5a17e
635 changed files with 1283 additions and 1617 deletions
@@ -1,4 +1,6 @@
// "Create member function 'set'" "true"
// ERROR: operator modifier is required on 'set' in 'Foo'
class Foo<T> {
fun <T> x (y: Foo<List<T>>, w: java.util.ArrayList<T>) {
y<caret>["", w] = w
@@ -1,4 +1,6 @@
// "Create member function 'set'" "true"
// ERROR: operator modifier is required on 'set' in 'Foo'
class Foo<T> {
fun <T> x (y: Foo<List<T>>, w: java.util.ArrayList<T>) {
y["", w] = w
@@ -1,4 +1,5 @@
// "Create extension function 'set'" "true"
// ERROR: operator modifier is required on 'set' in ''
class Foo<T> {
fun <T> x (y: Any, w: java.util.ArrayList<T>) {
@@ -1,6 +1,7 @@
import java.util.ArrayList
// "Create extension function 'set'" "true"
// ERROR: operator modifier is required on 'set' in ''
class Foo<T> {
fun <T> x (y: Any, w: java.util.ArrayList<T>) {
@@ -1,6 +1,6 @@
// "Create member function 'set'" "true"
class A {
fun get(s: String): Int = 1
operator fun get(s: String): Int = 1
}
fun foo() {
@@ -1,6 +1,6 @@
// "Create member function 'set'" "true"
class A {
fun get(s: String): Int = 1
operator fun get(s: String): Int = 1
operator fun set(s: String, value: Int) {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.