K2 Scripting: add failing test for #KT-64241
This commit is contained in:
committed by
Space Team
parent
60e38d592c
commit
d5ad41fa28
+6
@@ -28148,6 +28148,12 @@ public class DiagnosticCompilerTestFE10TestdataTestGenerated extends AbstractDia
|
|||||||
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/implicitInvokeOnPropertyInItsInitializer.kt");
|
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/implicitInvokeOnPropertyInItsInitializer.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("implicitInvokeOnPropertyInItsInitializer2.kt")
|
||||||
|
public void testImplicitInvokeOnPropertyInItsInitializer2() {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/implicitInvokeOnPropertyInItsInitializer2.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("incForAssignmentSmartCast.kt")
|
@TestMetadata("incForAssignmentSmartCast.kt")
|
||||||
public void testIncForAssignmentSmartCast() {
|
public void testIncForAssignmentSmartCast() {
|
||||||
|
|||||||
+6
@@ -28148,6 +28148,12 @@ public class LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated
|
|||||||
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/implicitInvokeOnPropertyInItsInitializer.kt");
|
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/implicitInvokeOnPropertyInItsInitializer.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("implicitInvokeOnPropertyInItsInitializer2.kt")
|
||||||
|
public void testImplicitInvokeOnPropertyInItsInitializer2() {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/implicitInvokeOnPropertyInItsInitializer2.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("incForAssignmentSmartCast.kt")
|
@TestMetadata("incForAssignmentSmartCast.kt")
|
||||||
public void testIncForAssignmentSmartCast() {
|
public void testIncForAssignmentSmartCast() {
|
||||||
|
|||||||
+6
@@ -29,6 +29,12 @@ public class LLFirPreresolvedReversedScriptDiagnosticCompilerTestDataTestGenerat
|
|||||||
runTest("plugins/scripting/scripting-tests/testData/diagnostics/testScripts/conflictingImportsWithJava.test.kts");
|
runTest("plugins/scripting/scripting-tests/testData/diagnostics/testScripts/conflictingImportsWithJava.test.kts");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("invokeResolve.test.kts")
|
||||||
|
public void testInvokeResolve_test() {
|
||||||
|
runTest("plugins/scripting/scripting-tests/testData/diagnostics/testScripts/invokeResolve.test.kts");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("providedPropertiesShadowing.test.kts")
|
@TestMetadata("providedPropertiesShadowing.test.kts")
|
||||||
public void testProvidedPropertiesShadowing_test() {
|
public void testProvidedPropertiesShadowing_test() {
|
||||||
|
|||||||
+6
@@ -29,6 +29,12 @@ public class LLFirScriptDiagnosticCompilerTestDataTestGenerated extends Abstract
|
|||||||
runTest("plugins/scripting/scripting-tests/testData/diagnostics/testScripts/conflictingImportsWithJava.test.kts");
|
runTest("plugins/scripting/scripting-tests/testData/diagnostics/testScripts/conflictingImportsWithJava.test.kts");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("invokeResolve.test.kts")
|
||||||
|
public void testInvokeResolve_test() {
|
||||||
|
runTest("plugins/scripting/scripting-tests/testData/diagnostics/testScripts/invokeResolve.test.kts");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("providedPropertiesShadowing.test.kts")
|
@TestMetadata("providedPropertiesShadowing.test.kts")
|
||||||
public void testProvidedPropertiesShadowing_test() {
|
public void testProvidedPropertiesShadowing_test() {
|
||||||
|
|||||||
+6
@@ -25840,6 +25840,12 @@ public class FirLightTreeOldFrontendDiagnosticsTestGenerated extends AbstractFir
|
|||||||
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/implicitInvokeOnPropertyInItsInitializer.kt");
|
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/implicitInvokeOnPropertyInItsInitializer.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("implicitInvokeOnPropertyInItsInitializer2.kt")
|
||||||
|
public void testImplicitInvokeOnPropertyInItsInitializer2() {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/implicitInvokeOnPropertyInItsInitializer2.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("incForAssignmentSmartCast.kt")
|
@TestMetadata("incForAssignmentSmartCast.kt")
|
||||||
public void testIncForAssignmentSmartCast() {
|
public void testIncForAssignmentSmartCast() {
|
||||||
|
|||||||
+6
@@ -25846,6 +25846,12 @@ public class FirPsiOldFrontendDiagnosticsTestGenerated extends AbstractFirPsiDia
|
|||||||
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/implicitInvokeOnPropertyInItsInitializer.kt");
|
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/implicitInvokeOnPropertyInItsInitializer.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("implicitInvokeOnPropertyInItsInitializer2.kt")
|
||||||
|
public void testImplicitInvokeOnPropertyInItsInitializer2() {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/implicitInvokeOnPropertyInItsInitializer2.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("incForAssignmentSmartCast.kt")
|
@TestMetadata("incForAssignmentSmartCast.kt")
|
||||||
public void testIncForAssignmentSmartCast() {
|
public void testIncForAssignmentSmartCast() {
|
||||||
|
|||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
// !LANGUAGE: +ContextReceivers
|
||||||
|
// WITH_STDLIB
|
||||||
|
|
||||||
|
interface C
|
||||||
|
|
||||||
|
fun C.foo(body: () -> Unit) {}
|
||||||
|
|
||||||
|
context(C)
|
||||||
|
class A {
|
||||||
|
val foo = <!NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER, RECURSION_IN_IMPLICIT_TYPES!>foo<!> {}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun C.test() {
|
||||||
|
object {
|
||||||
|
val foo = foo {}
|
||||||
|
}
|
||||||
|
}
|
||||||
+17
@@ -0,0 +1,17 @@
|
|||||||
|
// !LANGUAGE: +ContextReceivers
|
||||||
|
// WITH_STDLIB
|
||||||
|
|
||||||
|
interface C
|
||||||
|
|
||||||
|
fun C.foo(body: () -> Unit) {}
|
||||||
|
|
||||||
|
context(C)
|
||||||
|
class A {
|
||||||
|
val foo = foo {}
|
||||||
|
}
|
||||||
|
|
||||||
|
fun C.test() {
|
||||||
|
object {
|
||||||
|
val foo = foo {}
|
||||||
|
}
|
||||||
|
}
|
||||||
Generated
+6
@@ -28148,6 +28148,12 @@ public class DiagnosticTestGenerated extends AbstractDiagnosticTest {
|
|||||||
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/implicitInvokeOnPropertyInItsInitializer.kt");
|
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/implicitInvokeOnPropertyInItsInitializer.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("implicitInvokeOnPropertyInItsInitializer2.kt")
|
||||||
|
public void testImplicitInvokeOnPropertyInItsInitializer2() {
|
||||||
|
runTest("compiler/testData/diagnostics/tests/operatorsOverloading/implicitInvokeOnPropertyInItsInitializer2.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("incForAssignmentSmartCast.kt")
|
@TestMetadata("incForAssignmentSmartCast.kt")
|
||||||
public void testIncForAssignmentSmartCast() {
|
public void testIncForAssignmentSmartCast() {
|
||||||
|
|||||||
+3
@@ -0,0 +1,3 @@
|
|||||||
|
// GRADLE_LIKE_SCRIPT
|
||||||
|
|
||||||
|
val projectApi = <!RECURSION_IN_IMPLICIT_TYPES!>projectApi<!> { <!UNRESOLVED_REFERENCE!>it<!> }
|
||||||
+6
@@ -29,6 +29,12 @@ public class ScriptWithCustomDefDiagnosticsTestBaseGenerated extends AbstractScr
|
|||||||
runTest("plugins/scripting/scripting-tests/testData/diagnostics/testScripts/conflictingImportsWithJava.test.kts");
|
runTest("plugins/scripting/scripting-tests/testData/diagnostics/testScripts/conflictingImportsWithJava.test.kts");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
@TestMetadata("invokeResolve.test.kts")
|
||||||
|
public void testInvokeResolve_test() {
|
||||||
|
runTest("plugins/scripting/scripting-tests/testData/diagnostics/testScripts/invokeResolve.test.kts");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@TestMetadata("providedPropertiesShadowing.test.kts")
|
@TestMetadata("providedPropertiesShadowing.test.kts")
|
||||||
public void testProvidedPropertiesShadowing_test() {
|
public void testProvidedPropertiesShadowing_test() {
|
||||||
|
|||||||
Reference in New Issue
Block a user