KT-57487: Add codegen test

Merge-request: KT-MR-9300
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
Vladimir Sukharev
2023-03-23 10:03:00 +00:00
committed by Space Team
parent a2e2a96fd3
commit 9407ec35e3
14 changed files with 86 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
// KT-57487: Stdlib ArraysTest fails with `Class found but error nodes are not allowed`
// IGNORE_BACKEND_K2: NATIVE, JS_IR
// Minimized from libraries.stdlib.test.collections.ArraysTest.sortedTests()
// Exception is: Class found but error nodes are not allowed
fun <T: Comparable<T>> arrayData(vararg values: T, toArray: Array<T>.() -> Unit) {}
fun box(): String {
arrayData(42) { }
return "OK"
}