[NI] Add tests for obsolete issues
#KT-26303 Obsolete #KT-32205 Obsolete
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// FILE: a.kt
|
||||
|
||||
package foo
|
||||
|
||||
operator fun Int.invoke() = null
|
||||
fun Int.foo() = null
|
||||
|
||||
// FILE: b.kt
|
||||
|
||||
package bar
|
||||
|
||||
import foo.foo as invoke
|
||||
import foo.invoke
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
42()
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package
|
||||
|
||||
package bar {
|
||||
public fun main(/*0*/ args: kotlin.Array<kotlin.String>): kotlin.Unit
|
||||
}
|
||||
|
||||
package foo {
|
||||
public fun kotlin.Int.foo(): kotlin.Nothing?
|
||||
public operator fun kotlin.Int.invoke(): kotlin.Nothing?
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
// FILE: A.java
|
||||
|
||||
public class A {
|
||||
public static void foo(A... values) {}
|
||||
}
|
||||
|
||||
// FILE: test.kt
|
||||
|
||||
fun test(vararg values: A) {
|
||||
A.foo(*values)
|
||||
A.foo(<!TYPE_MISMATCH!>values<!>)
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package
|
||||
|
||||
public fun test(/*0*/ vararg values: A /*kotlin.Array<out A>*/): kotlin.Unit
|
||||
|
||||
public open class A {
|
||||
public constructor A()
|
||||
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
|
||||
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
|
||||
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
|
||||
|
||||
// Static members
|
||||
public open fun foo(/*0*/ vararg values: A! /*kotlin.Array<(out) A!>!*/): kotlin.Unit
|
||||
}
|
||||
Reference in New Issue
Block a user