[NI] Add tests for obsolete issues
#KT-26303 Obsolete #KT-32205 Obsolete
This commit is contained in:
+10
@@ -17305,6 +17305,11 @@ public class FirDiagnosticsSmokeTestGenerated extends AbstractFirDiagnosticsSmok
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt26.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt26303.kt")
|
||||
public void testKt26303() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt26303.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt26-1.kt")
|
||||
public void testKt26_1() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt26-1.kt");
|
||||
@@ -17365,6 +17370,11 @@ public class FirDiagnosticsSmokeTestGenerated extends AbstractFirDiagnosticsSmok
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt316.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt32205.kt")
|
||||
public void testKt32205() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt32205.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt328.kt")
|
||||
public void testKt328() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt328.kt");
|
||||
|
||||
@@ -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
|
||||
}
|
||||
@@ -17317,6 +17317,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt26.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt26303.kt")
|
||||
public void testKt26303() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt26303.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt26-1.kt")
|
||||
public void testKt26_1() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt26-1.kt");
|
||||
@@ -17377,6 +17382,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt316.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt32205.kt")
|
||||
public void testKt32205() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt32205.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt328.kt")
|
||||
public void testKt328() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt328.kt");
|
||||
|
||||
Generated
+10
@@ -17307,6 +17307,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt26.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt26303.kt")
|
||||
public void testKt26303() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt26303.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt26-1.kt")
|
||||
public void testKt26_1() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt26-1.kt");
|
||||
@@ -17367,6 +17372,11 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt316.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt32205.kt")
|
||||
public void testKt32205() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt32205.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("kt328.kt")
|
||||
public void testKt328() throws Exception {
|
||||
runTest("compiler/testData/diagnostics/tests/regressions/kt328.kt");
|
||||
|
||||
Reference in New Issue
Block a user