Fixed test data
This commit is contained in:
@@ -3,4 +3,6 @@ import lib.ArrayFactory
|
|||||||
|
|
||||||
public class Impl : ArrayFactory {
|
public class Impl : ArrayFactory {
|
||||||
<caret>
|
<caret>
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val array: Array<String>
|
||||||
@@ -5,4 +5,6 @@ public class Impl : ArrayFactory {
|
|||||||
override fun create(): lib.Array {
|
override fun create(): lib.Array {
|
||||||
<selection><caret>throw UnsupportedOperationException()</selection>
|
<selection><caret>throw UnsupportedOperationException()</selection>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
val array: Array<String>
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
class SortedSet
|
class SortedSet
|
||||||
|
|
||||||
fun test() {
|
fun test(set: SortedSet) {
|
||||||
val a = SortedSet<caret>
|
val a = SortedSet<caret>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,6 @@ import java.util
|
|||||||
|
|
||||||
class SortedSet
|
class SortedSet
|
||||||
|
|
||||||
fun test() {
|
fun test(set: SortedSet) {
|
||||||
val a = util.SortedSet<caret>
|
val a = util.SortedSet<caret>
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
val x : Arra<caret>
|
val x : Arra<caret>
|
||||||
|
val y: Array<String>
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
import java.lang.reflect
|
import java.lang.reflect
|
||||||
|
|
||||||
val x : reflect.Array<caret>
|
val x : reflect.Array<caret>
|
||||||
|
val y: Array<String>
|
||||||
@@ -1,10 +1,10 @@
|
|||||||
package a
|
package a
|
||||||
|
|
||||||
import java.lang
|
import java.lang.AssertionError
|
||||||
|
|
||||||
fun foo() {
|
fun foo() {
|
||||||
if (!true) {
|
if (!true) {
|
||||||
throw lang.AssertionError("text")
|
throw AssertionError("text")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-1
@@ -1,8 +1,10 @@
|
|||||||
|
import kotlin.Array
|
||||||
|
|
||||||
// IS_APPLICABLE: true
|
// IS_APPLICABLE: true
|
||||||
class Array
|
class Array
|
||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
bar<kotlin.Array<out String>, Int, kotlin.Array<out String>>(foo(""), 0, foo(""))
|
bar<Array<out String>, Int, Array<out String>>(foo(""), 0, foo(""))
|
||||||
}
|
}
|
||||||
|
|
||||||
fun foo(vararg x: String) = x
|
fun foo(vararg x: String) = x
|
||||||
|
|||||||
+3
-1
@@ -1,8 +1,10 @@
|
|||||||
|
import kotlin.Array
|
||||||
|
|
||||||
// IS_APPLICABLE: true
|
// IS_APPLICABLE: true
|
||||||
class Array
|
class Array
|
||||||
|
|
||||||
fun test() {
|
fun test() {
|
||||||
bar<kotlin.Array<out String>>(foo(""))
|
bar<Array<out String>>(foo(""))
|
||||||
}
|
}
|
||||||
|
|
||||||
fun foo(vararg x: String) = x
|
fun foo(vararg x: String) = x
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
import kotlin.String
|
||||||
|
|
||||||
class String {}
|
class String {}
|
||||||
|
|
||||||
val x: kotlin.String = ""
|
val x: String = ""
|
||||||
@@ -1,7 +1,9 @@
|
|||||||
// "Change function signature to 'fun f(a: A)'" "true"
|
// "Change function signature to 'fun f(a: A)'" "true"
|
||||||
// ERROR: 'f' overrides nothing
|
// ERROR: 'f' overrides nothing
|
||||||
import a.B
|
import a.B
|
||||||
|
import a.A
|
||||||
|
|
||||||
class A {}
|
class A {}
|
||||||
class BB : B() {
|
class BB : B() {
|
||||||
<caret>override fun f(a: a.A) {}
|
override fun f(a: A) {}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user