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 'get'" "true"
// ERROR: operator modifier is required on 'get' in 'Foo'
class Foo<T> {
fun x (y: Foo<Iterable<T>>) {
val z: Iterable<T> = y<caret>[""]
@@ -1,4 +1,6 @@
// "Create member function 'get'" "true"
// ERROR: operator modifier is required on 'get' in 'Foo'
class Foo<T> {
fun x (y: Foo<Iterable<T>>) {
val z: Iterable<T> = y[""]
@@ -1,4 +1,6 @@
// "Create member function 'get'" "true"
// ERROR: operator modifier is required on 'get' in 'Foo'
class Foo<T> {
fun <T> x (y: Foo<List<T>>, w: java.util.ArrayList<T>) {
val z: Iterable<T> = y<caret>["", w]
@@ -1,4 +1,6 @@
// "Create member function 'get'" "true"
// ERROR: operator modifier is required on 'get' in 'Foo'
class Foo<T> {
fun <T> x (y: Foo<List<T>>, w: java.util.ArrayList<T>) {
val z: Iterable<T> = y["", w]
@@ -1,4 +1,6 @@
// "Create member function 'get'" "true"
// ERROR: operator modifier is required on 'get' in 'Foo'
class Foo<T>
fun <T> x (y: Foo<List<T>>, w: java.util.ArrayList<T>) {
val z: Iterable<T> = y<caret>["", w]
@@ -1,4 +1,6 @@
// "Create member function 'get'" "true"
// ERROR: operator modifier is required on 'get' in 'Foo'
class Foo<T> {
operator fun get(s: String, w: T): T {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
@@ -1,4 +1,6 @@
// "Create member function 'get'" "true"
// ERROR: operator modifier is required on 'get' in 'Foo'
class Foo<T>
fun <T> x (y: Foo<List<T>>, w: java.util.ArrayList<T>) {
val z = y<caret>["", w]
@@ -1,4 +1,6 @@
// "Create member function 'get'" "true"
// ERROR: operator modifier is required on 'get' in 'Foo'
class Foo<T> {
operator fun get(s: String, w: T): Any {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
@@ -1,4 +1,6 @@
// "Create member function 'get'" "true"
// ERROR: operator modifier is required on 'get' in 'Foo'
import java.util.ArrayList
class Foo<T> {
@@ -1,4 +1,6 @@
// "Create member function 'get'" "true"
// ERROR: operator modifier is required on 'get' in 'Foo'
import java.util.ArrayList
class Foo<T> {
@@ -1,4 +1,6 @@
// "Create extension function 'get'" "true"
// ERROR: operator modifier is required on 'get' in ''
fun x (y: Any) {
val z: Any = y<caret>[""]
}
@@ -1,4 +1,6 @@
// "Create extension function 'get'" "true"
// ERROR: operator modifier is required on 'get' in ''
fun x (y: Any) {
val z: Any = y[""]
}
@@ -1,4 +1,6 @@
// "Create member function 'get'" "true"
// ERROR: operator modifier is required on 'get' in 'Foo'
class Foo<T> {
fun <S> x (y: Foo<Iterable<S>>) {
val z: Iterable<S> = y<caret>[""]
@@ -1,4 +1,6 @@
// "Create member function 'get'" "true"
// ERROR: operator modifier is required on 'get' in 'Foo'
class Foo<T> {
fun <S> x (y: Foo<Iterable<S>>) {
val z: Iterable<S> = y[""]
@@ -1,4 +1,6 @@
// "Create member function 'get'" "true"
// ERROR: operator modifier is required on 'get' in 'Foo'
class Foo<T, S: Iterable<T>> {
fun <U> x (y: Foo<U, Iterable<U>>) {
val z: U = y<caret>[""]
@@ -1,4 +1,6 @@
// "Create member function 'get'" "true"
// ERROR: operator modifier is required on 'get' in 'Foo'
class Foo<T, S: Iterable<T>> {
fun <U> x (y: Foo<U, Iterable<U>>) {
val z: U = y[""]
@@ -1,4 +1,6 @@
// "Create member function 'get'" "true"
// ERROR: operator modifier is required on 'get' in 'Foo'
class Foo<T> {
fun <T, V> x (y: Foo<Iterable<T>>, w: Iterable<V>) {
val z: Iterable<T> = y<caret>["", w]
@@ -1,4 +1,6 @@
// "Create member function 'get'" "true"
// ERROR: operator modifier is required on 'get' in 'Foo'
class Foo<T> {
fun <T, V> x (y: Foo<Iterable<T>>, w: Iterable<V>) {
val z: Iterable<T> = y["", w]
@@ -1,4 +1,6 @@
// "Create member function 'get'" "true"
// ERROR: operator modifier is required on 'get' in 'Foo'
import java.util.ArrayList
class Foo<T> {
@@ -1,4 +1,6 @@
// "Create member function 'get'" "true"
// ERROR: operator modifier is required on 'get' in 'Foo'
import java.util.ArrayList
class Foo<T> {
@@ -1,4 +1,6 @@
// "Create member function 'get'" "true"
// ERROR: operator modifier is required on 'get' in 'Foo'
import java.util.ArrayList
class Foo<T> {
@@ -1,4 +1,6 @@
// "Create member function 'get'" "true"
// ERROR: operator modifier is required on 'get' in 'Foo'
import java.util.ArrayList
class Foo<T> {
@@ -1,4 +1,6 @@
// "Create member function 'get'" "true"
// ERROR: operator modifier is required on 'get' in 'Foo'
import java.util.ArrayList
class Foo<S> {
@@ -1,4 +1,6 @@
// "Create member function 'get'" "true"
// ERROR: operator modifier is required on 'get' in 'Foo'
import java.util.ArrayList
class Foo<S> {