diff --git a/compiler/fir/resolve/testData/resolve/stdlib/problems/cloneArray.kt b/compiler/fir/resolve/testData/resolve/stdlib/problems/cloneArray.kt new file mode 100644 index 00000000000..a894f10fef6 --- /dev/null +++ b/compiler/fir/resolve/testData/resolve/stdlib/problems/cloneArray.kt @@ -0,0 +1,7 @@ +fun test_1(array: Array) { + array.clone() +} + +fun test_2(array: IntArray) { + array.clone() +} \ No newline at end of file diff --git a/compiler/fir/resolve/testData/resolve/stdlib/problems/cloneArray.txt b/compiler/fir/resolve/testData/resolve/stdlib/problems/cloneArray.txt new file mode 100644 index 00000000000..b82932643db --- /dev/null +++ b/compiler/fir/resolve/testData/resolve/stdlib/problems/cloneArray.txt @@ -0,0 +1,7 @@ +FILE: cloneArray.kt + public final fun test_1(array: R|kotlin/Array|): R|kotlin/Unit| { + R|/array|.#() + } + public final fun test_2(array: R|kotlin/IntArray|): R|kotlin/Unit| { + R|/array|.#() + } diff --git a/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/FirDiagnosticsWithStdlibTestGenerated.java b/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/FirDiagnosticsWithStdlibTestGenerated.java index 3eeeae74f15..217367ecac7 100644 --- a/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/FirDiagnosticsWithStdlibTestGenerated.java +++ b/compiler/fir/resolve/tests/org/jetbrains/kotlin/fir/FirDiagnosticsWithStdlibTestGenerated.java @@ -504,6 +504,11 @@ public class FirDiagnosticsWithStdlibTestGenerated extends AbstractFirDiagnostic KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/fir/resolve/testData/resolve/stdlib/problems"), Pattern.compile("^([^.]+)\\.kt$"), true); } + @TestMetadata("cloneArray.kt") + public void testCloneArray() throws Exception { + runTest("compiler/fir/resolve/testData/resolve/stdlib/problems/cloneArray.kt"); + } + @TestMetadata("unresolvedComparator.kt") public void testUnresolvedComparator() throws Exception { runTest("compiler/fir/resolve/testData/resolve/stdlib/problems/unresolvedComparator.kt");