diff --git a/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.1.kt b/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.1.kt new file mode 100644 index 00000000000..630a5287d58 --- /dev/null +++ b/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.1.kt @@ -0,0 +1,41 @@ +// WITH_RUNTIME + +/* + * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) + * + * SPEC VERSION: 0.1-253 + * PLACE: overload-resolution, callables-and-invoke-convention -> paragraph 6 -> sentence 1 + * RELEVANT PLACES: overload-resolution, callables-and-invoke-convention -> paragraph 2 -> sentence 2 + * overload-resolution, callables-and-invoke-convention -> paragraph 2 -> sentence 6 + * NUMBER: 1 + * DESCRIPTION: function-like prio is higher than property-like callables + */ + +// FILE: KotlinLib.kt +package test.lib + +var booInt: Boolean = false +var booLambda: Boolean = false + +fun boo(a: Int) { booInt = true } +val boo: (Int) -> Unit = { a: Int -> booLambda = true} + +// FILE: KotlinClass.kt +package overloadResolution + +var fooInt: Boolean = false +var fooLambda: Boolean = false + +fun foo(a: Int) { fooInt = true } +val foo: (Int) -> Unit = { a: Int -> fooLambda = true} + + +fun box(): String { + + overloadResolution.foo(1) + + if (fooInt && ! fooLambda) + return "OK" + + return "NOK" +} \ No newline at end of file diff --git a/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.10.kt b/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.10.kt new file mode 100644 index 00000000000..55b33f6066c --- /dev/null +++ b/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.10.kt @@ -0,0 +1,38 @@ +// WITH_RUNTIME + +/* + * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) + * + * SPEC VERSION: 0.1-253 + * PLACE: overload-resolution, callables-and-invoke-convention -> paragraph 6 -> sentence 1 + * RELEVANT PLACES: overload-resolution, callables-and-invoke-convention -> paragraph 2 -> sentence 4 + * overload-resolution, callables-and-invoke-convention -> paragraph 2 -> sentence 9 + * NUMBER: 10 + * DESCRIPTION: function-like prio is higher than property-like callables + */ + +// FILE: KotlinLib.kt +package test.lib +class MyClass { + //property-like (II prio) + companion object foo { + var fooCompanionObj = false + operator fun invoke() { + fooCompanionObj = true + } + } +} + +// FILE: KotlinClass.kt +package overloadResolution +import test.lib.MyClass.foo as boo + +//function-like (I prio) +class boo(){} + +fun box(): String { + val x = boo() + if (x is boo && !test.lib.MyClass.fooCompanionObj) + return "OK" + return "NOK" +} \ No newline at end of file diff --git a/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.2.kt b/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.2.kt new file mode 100644 index 00000000000..555db993290 --- /dev/null +++ b/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.2.kt @@ -0,0 +1,39 @@ +// WITH_RUNTIME + +/* + * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) + * + * SPEC VERSION: 0.1-253 + * PLACE: overload-resolution, callables-and-invoke-convention -> paragraph 6 -> sentence 1 + * RELEVANT PLACES: overload-resolution, callables-and-invoke-convention -> paragraph 2 -> sentence 6 + * overload-resolution, callables-and-invoke-convention -> paragraph 2 -> sentence 3 + * NUMBER: 2 + * DESCRIPTION: function-like prio is higher than property-like callables + */ + +// FILE: KotlinLib.kt +package test.lib + +var isBooCalled: Boolean = false + +fun boo(a: Int) { isBooCalled = true } + + +// FILE: KotlinClass.kt +package overloadResolution +import test.lib.boo as foo + +var isFooCalled: Boolean = false + +val foo: (Int) -> Unit = { a: Int -> isFooCalled = true} + + +fun box(): String { + + foo(1) + + if (!isFooCalled && test.lib.isBooCalled) + return "OK" + + return "NOK" +} \ No newline at end of file diff --git a/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.3.kt b/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.3.kt new file mode 100644 index 00000000000..080187f9d20 --- /dev/null +++ b/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.3.kt @@ -0,0 +1,30 @@ +// WITH_RUNTIME + +/* + * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) + * + * SPEC VERSION: 0.1-253 + * PLACE: overload-resolution, callables-and-invoke-convention -> paragraph 6 -> sentence 1 + * RELEVANT PLACES: overload-resolution, callables-and-invoke-convention -> paragraph 2 -> sentence 4 + * overload-resolution, callables-and-invoke-convention -> paragraph 2 -> sentence 6 + * NUMBER: 3 + * DESCRIPTION: function-like prio is higher than property-like callables + */ + + +class foo(val a: Int) + +var fooLambda: Boolean = false + +val foo: (Int) -> Unit = { a: Int -> fooLambda = true } + + +fun box(): String { + + val x = foo(1) + + if (x is foo && !fooLambda) + return "OK" + + return "NOK" +} \ No newline at end of file diff --git a/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.4.kt b/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.4.kt new file mode 100644 index 00000000000..cd865b3a0b7 --- /dev/null +++ b/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.4.kt @@ -0,0 +1,35 @@ +// WITH_RUNTIME + +/* + * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) + * + * SPEC VERSION: 0.1-253 + * PLACE: overload-resolution, callables-and-invoke-convention -> paragraph 6 -> sentence 1 + * RELEVANT PLACES: overload-resolution, callables-and-invoke-convention -> paragraph 2 -> sentence 2 + * overload-resolution, callables-and-invoke-convention -> paragraph 2 -> sentence 10 + * NUMBER: 4 + * DESCRIPTION: function-like prio is higher than property-like callables + */ + +// FILE: KotlinLib.kt +package test.lib + +var isFooCalled: Boolean = false +val foo: (Int) -> Unit = { a: Int -> isFooCalled = true} + +// FILE: KotlinClass.kt +package overloadResolution +import test.lib.foo as boo + +var isBooCalled: Boolean = false +fun boo(a: Int) { isBooCalled = true } + +fun box(): String { + + boo(1) + + if (!test.lib.isFooCalled && isBooCalled) + return "OK" + + return "NOK" +} \ No newline at end of file diff --git a/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.5.kt b/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.5.kt new file mode 100644 index 00000000000..8167f85b8ee --- /dev/null +++ b/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.5.kt @@ -0,0 +1,30 @@ +// WITH_RUNTIME + +/* + * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) + * + * SPEC VERSION: 0.1-253 + * PLACE: overload-resolution, callables-and-invoke-convention -> paragraph 6 -> sentence 1 + * RELEVANT PLACES: overload-resolution, callables-and-invoke-convention -> paragraph 2 -> sentence 2 + * overload-resolution, callables-and-invoke-convention -> paragraph 2 -> sentence 7 + * NUMBER: 5 + * DESCRIPTION: function-like prio is higher than property-like callables + */ + +//function-like (I prio) +var fooFun: Boolean = false +fun foo() { fooFun = true } + +//property-like (II prio) +var isMarker = false +val foo: Marker = object : Marker {} +interface Marker { + operator fun invoke() { isMarker = true } +} + +fun box(): String { + foo() + if (!isMarker && fooFun) + return "OK" + return "NOK" +} \ No newline at end of file diff --git a/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.6.kt b/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.6.kt new file mode 100644 index 00000000000..b645f510010 --- /dev/null +++ b/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.6.kt @@ -0,0 +1,38 @@ +// WITH_RUNTIME + +/* + * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) + * + * SPEC VERSION: 0.1-253 + * PLACE: overload-resolution, callables-and-invoke-convention -> paragraph 6 -> sentence 1 + * RELEVANT PLACES: overload-resolution, callables-and-invoke-convention -> paragraph 2 -> sentence 2 + * overload-resolution, callables-and-invoke-convention -> paragraph 2 -> sentence 7 + * NUMBER: 6 + * DESCRIPTION: function-like prio is higher than property-like callables + */ + +// FILE: KotlinLib.kt +package test.lib +//property-like (II prio) +var isMarker = false +val foo: Marker = object : Marker {} +interface Marker { + operator fun invoke() { isMarker = true } +} + + +// FILE: KotlinClass.kt +package overloadResolution +import test.lib.foo as foo + +//function-like (I prio) +var fooFun: Boolean = false +fun foo() { fooFun = true } + + +fun box(): String { + foo() + if (!test.lib.isMarker && fooFun) + return "OK" + return "NOK" +} \ No newline at end of file diff --git a/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.7.kt b/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.7.kt new file mode 100644 index 00000000000..30eb5a2212a --- /dev/null +++ b/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.7.kt @@ -0,0 +1,36 @@ +// WITH_RUNTIME + +/* + * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) + * + * SPEC VERSION: 0.1-253 + * PLACE: overload-resolution, callables-and-invoke-convention -> paragraph 6 -> sentence 1 + * RELEVANT PLACES: overload-resolution, callables-and-invoke-convention -> paragraph 2 -> sentence 2 + * overload-resolution, callables-and-invoke-convention -> paragraph 2 -> sentence 7 + * NUMBER: 7 + * DESCRIPTION: function-like prio is higher than property-like callables + */ + +// FILE: KotlinLib.kt +package test.lib +//function-like (I prio) +var fooFun: Boolean = false +fun foo() { fooFun = true } + + +// FILE: KotlinClass.kt +package overloadResolution +import test.lib.foo as foo +//property-like (II prio) +var isMarker = false +val foo: Marker = object : Marker {} +interface Marker { + operator fun invoke() { isMarker = true } +} + +fun box(): String { + foo() + if (!isMarker && test.lib.fooFun) + return "OK" + return "NOK" +} \ No newline at end of file diff --git a/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.8.kt b/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.8.kt new file mode 100644 index 00000000000..73c951cfeee --- /dev/null +++ b/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.8.kt @@ -0,0 +1,38 @@ +// WITH_RUNTIME + +/* + * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) + * + * SPEC VERSION: 0.1-253 + * PLACE: overload-resolution, callables-and-invoke-convention -> paragraph 6 -> sentence 1 + * RELEVANT PLACES: overload-resolution, callables-and-invoke-convention -> paragraph 2 -> sentence 2 + * overload-resolution, callables-and-invoke-convention -> paragraph 2 -> sentence 8 + * NUMBER: 8 + * DESCRIPTION: function-like prio is higher than property-like callables + */ + +class MyClass { + + //function-like (I prio) + var fooFun: Boolean = false + fun foo() { fooFun = true } + + //property-like (II prio) + companion object foo { + var fooCompanionObj = false + operator fun invoke() { + fooCompanionObj = true + } + } + + fun check() : String { + foo() + if (fooFun && !fooCompanionObj) + return "OK" + return "NOK" + } +} + +fun box() : String{ + return MyClass().check() +} \ No newline at end of file diff --git a/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.9.kt b/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.9.kt new file mode 100644 index 00000000000..204e735212c --- /dev/null +++ b/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.9.kt @@ -0,0 +1,40 @@ +// WITH_RUNTIME + +/* + * KOTLIN CODEGEN BOX SPEC TEST (POSITIVE) + * + * SPEC VERSION: 0.1-253 + * PLACE: overload-resolution, callables-and-invoke-convention -> paragraph 6 -> sentence 1 + * RELEVANT PLACES: overload-resolution, callables-and-invoke-convention -> paragraph 2 -> sentence 2 + * overload-resolution, callables-and-invoke-convention -> paragraph 2 -> sentence 8 + * overload-resolution, callables-and-invoke-convention -> paragraph 2 -> sentence 10 + * NUMBER: 9 + * DESCRIPTION: function-like prio is higher than property-like callables + */ + +// FILE: KotlinLib.kt +package test.lib +class MyClass { + //property-like (II prio) + companion object foo { + var fooCompanionObj = false + operator fun invoke() { + fooCompanionObj = true + } + } +} + +// FILE: KotlinClass.kt +package overloadResolution +import test.lib.MyClass.foo as boo + +//function-like (I prio) +var booFun: Boolean = false +fun boo() { booFun = true } + +fun box(): String { + boo() + if (booFun && !test.lib.MyClass.fooCompanionObj) + return "OK" + return "NOK" +} \ No newline at end of file diff --git a/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/testsMap.json b/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/testsMap.json new file mode 100644 index 00000000000..4cf157a97e9 --- /dev/null +++ b/compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/testsMap.json @@ -0,0 +1,148 @@ +{ + "6": { + "pos": { + "1": [ + { + "specVersion": "0.1-253", + "casesNumber": 0, + "description": "function-like prio is higher than property-like callables", + "unexpectedBehaviour": false + }, + { + "specVersion": "0.1-253", + "casesNumber": 0, + "description": "function-like prio is higher than property-like callables", + "unexpectedBehaviour": false + }, + { + "specVersion": "0.1-253", + "casesNumber": 0, + "description": "function-like prio is higher than property-like callables", + "unexpectedBehaviour": false + }, + { + "specVersion": "0.1-253", + "casesNumber": 0, + "description": "function-like prio is higher than property-like callables", + "unexpectedBehaviour": false + }, + { + "specVersion": "0.1-253", + "casesNumber": 0, + "description": "function-like prio is higher than property-like callables", + "unexpectedBehaviour": false + }, + { + "specVersion": "0.1-253", + "casesNumber": 0, + "description": "function-like prio is higher than property-like callables", + "unexpectedBehaviour": false + }, + { + "specVersion": "0.1-253", + "casesNumber": 0, + "description": "function-like prio is higher than property-like callables", + "unexpectedBehaviour": false + }, + { + "specVersion": "0.1-253", + "casesNumber": 0, + "description": "function-like prio is higher than property-like callables", + "unexpectedBehaviour": false + }, + { + "specVersion": "0.1-253", + "casesNumber": 0, + "description": "function-like prio is higher than property-like callables", + "unexpectedBehaviour": false + }, + { + "specVersion": "0.1-253", + "casesNumber": 0, + "description": "function-like prio is higher than property-like callables", + "unexpectedBehaviour": false + } + ] + } + }, + "2": { + "pos": { + "2": [ + { + "specVersion": "0.1-253", + "casesNumber": 0, + "description": "function-like prio is higher than property-like callables", + "path": "compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.6.kt", + "unexpectedBehaviour": false + }, + { + "specVersion": "0.1-253", + "casesNumber": 0, + "description": "function-like prio is higher than property-like callables", + "path": "compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.7.kt", + "unexpectedBehaviour": false + }, + { + "specVersion": "0.1-253", + "casesNumber": 0, + "description": "function-like prio is higher than property-like callables", + "path": "compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.8.kt", + "unexpectedBehaviour": false + }, + { + "specVersion": "0.1-253", + "casesNumber": 0, + "description": "function-like prio is higher than property-like callables", + "path": "compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.9.kt", + "unexpectedBehaviour": false + }, + { + "specVersion": "0.1-253", + "casesNumber": 0, + "description": "function-like prio is higher than property-like callables", + "path": "compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.4.kt", + "unexpectedBehaviour": false + }, + { + "specVersion": "0.1-253", + "casesNumber": 0, + "description": "function-like prio is higher than property-like callables", + "path": "compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.5.kt", + "unexpectedBehaviour": false + }, + { + "specVersion": "0.1-253", + "casesNumber": 0, + "description": "function-like prio is higher than property-like callables", + "path": "compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.1.kt", + "unexpectedBehaviour": false + } + ], + "6": [ + { + "specVersion": "0.1-253", + "casesNumber": 0, + "description": "function-like prio is higher than property-like callables", + "path": "compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.2.kt", + "unexpectedBehaviour": false + } + ], + "4": [ + { + "specVersion": "0.1-253", + "casesNumber": 0, + "description": "function-like prio is higher than property-like callables", + "path": "compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.3.kt", + "unexpectedBehaviour": false + }, + { + "specVersion": "0.1-253", + "casesNumber": 0, + "description": "function-like prio is higher than property-like callables", + "path": "compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.10.kt", + "unexpectedBehaviour": false + } + ] + } + } +} \ No newline at end of file diff --git a/compiler/tests-spec/tests/org/jetbrains/kotlin/spec/codegen/BlackBoxCodegenTestSpecGenerated.java b/compiler/tests-spec/tests/org/jetbrains/kotlin/spec/codegen/BlackBoxCodegenTestSpecGenerated.java index 43b4f248c38..491c045db0b 100644 --- a/compiler/tests-spec/tests/org/jetbrains/kotlin/spec/codegen/BlackBoxCodegenTestSpecGenerated.java +++ b/compiler/tests-spec/tests/org/jetbrains/kotlin/spec/codegen/BlackBoxCodegenTestSpecGenerated.java @@ -3293,6 +3293,108 @@ public class BlackBoxCodegenTestSpecGenerated extends AbstractBlackBoxCodegenTes } } + @TestMetadata("compiler/tests-spec/testData/codegen/box/linked/overload-resolution") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Overload_resolution extends AbstractBlackBoxCodegenTestSpec { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInOverload_resolution() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/codegen/box/linked/overload-resolution"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Callables_and_invoke_convention extends AbstractBlackBoxCodegenTestSpec { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInCallables_and_invoke_convention() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class P_6 extends AbstractBlackBoxCodegenTestSpec { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + public void testAllFilesPresentInP_6() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + + @TestMetadata("compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos") + @TestDataPath("$PROJECT_ROOT") + @RunWith(JUnit3RunnerWithInners.class) + public static class Pos extends AbstractBlackBoxCodegenTestSpec { + private void runTest(String testDataFilePath) throws Exception { + KotlinTestUtils.runTest(this::doTest, this, testDataFilePath); + } + + @TestMetadata("1.1.kt") + public void test1_1() throws Exception { + runTest("compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.1.kt"); + } + + @TestMetadata("1.10.kt") + public void test1_10() throws Exception { + runTest("compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.10.kt"); + } + + @TestMetadata("1.2.kt") + public void test1_2() throws Exception { + runTest("compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.2.kt"); + } + + @TestMetadata("1.3.kt") + public void test1_3() throws Exception { + runTest("compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.3.kt"); + } + + @TestMetadata("1.4.kt") + public void test1_4() throws Exception { + runTest("compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.4.kt"); + } + + @TestMetadata("1.5.kt") + public void test1_5() throws Exception { + runTest("compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.5.kt"); + } + + @TestMetadata("1.6.kt") + public void test1_6() throws Exception { + runTest("compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.6.kt"); + } + + @TestMetadata("1.7.kt") + public void test1_7() throws Exception { + runTest("compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.7.kt"); + } + + @TestMetadata("1.8.kt") + public void test1_8() throws Exception { + runTest("compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.8.kt"); + } + + @TestMetadata("1.9.kt") + public void test1_9() throws Exception { + runTest("compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos/1.9.kt"); + } + + public void testAllFilesPresentInPos() throws Exception { + KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/tests-spec/testData/codegen/box/linked/overload-resolution/callables-and-invoke-convention/p-6/pos"), Pattern.compile("^(.+)\\.kt$"), null, true); + } + } + } + } + } + @TestMetadata("compiler/tests-spec/testData/codegen/box/linked/statements") @TestDataPath("$PROJECT_ROOT") @RunWith(JUnit3RunnerWithInners.class)