update testdata for https://github.com/JetBrains/kotlin/pull/896/
This commit is contained in:
Vendored
+1
-1
@@ -4,7 +4,7 @@ class Foo<T> {
|
||||
operator fun component2(): Int { return 0 }
|
||||
|
||||
operator fun component3(): Any {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
fun foo() {
|
||||
|
||||
Vendored
+1
-1
@@ -4,7 +4,7 @@ class Foo<T> {
|
||||
operator fun component2(): Int { return 0 }
|
||||
|
||||
operator fun component3(): String {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
fun foo() {
|
||||
|
||||
Vendored
+2
-2
@@ -3,12 +3,12 @@
|
||||
class FooIterator<T> {
|
||||
operator fun hasNext(): Boolean { return false }
|
||||
operator fun next(): Any {
|
||||
throw UnsupportedOperationException("not implemented")
|
||||
TODO("not implemented")
|
||||
}
|
||||
}
|
||||
class Foo<T> {
|
||||
operator fun iterator(): FooIterator<String> {
|
||||
throw UnsupportedOperationException("not implemented")
|
||||
TODO("not implemented")
|
||||
}
|
||||
}
|
||||
operator fun Any.component1(): Int {
|
||||
|
||||
Vendored
+3
-3
@@ -3,12 +3,12 @@
|
||||
class FooIterator<T> {
|
||||
operator fun hasNext(): Boolean { return false }
|
||||
operator fun next(): Any {
|
||||
throw UnsupportedOperationException("not implemented")
|
||||
TODO("not implemented")
|
||||
}
|
||||
}
|
||||
class Foo<T> {
|
||||
operator fun iterator(): FooIterator<String> {
|
||||
throw UnsupportedOperationException("not implemented")
|
||||
TODO("not implemented")
|
||||
}
|
||||
}
|
||||
operator fun Any.component1(): Int {
|
||||
@@ -19,5 +19,5 @@ fun foo() {
|
||||
}
|
||||
|
||||
operator fun Any.component2(): Int {
|
||||
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user