[K/N] Convert and enable some tests using System.out?.println()
^KT-59057 Merge-request: KT-MR-10546 Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
This commit is contained in:
committed by
Space Team
parent
67b00f86b7
commit
1e05cb308c
+4
-11
@@ -1,18 +1,11 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
|
||||
fun main(args: Array<String>?) {
|
||||
val y: Unit = Unit //do not compile
|
||||
A<Unit>() //do not compile
|
||||
C<Unit>(Unit) //do not compile
|
||||
//do not compile
|
||||
System.out?.println(fff<Unit>(Unit)) //do not compile
|
||||
System.out?.println(id<Unit>(y)) //do not compile
|
||||
System.out?.println(fff<Unit>(id<Unit>(y)) == id<Unit>(foreach(arrayOfNulls<Int>(0) as Array<Int>,{ e : Int -> }))) //do not compile
|
||||
fff<Unit>(Unit) //do not compile
|
||||
id<Unit>(y) //do not compile
|
||||
fff<Unit>(id<Unit>(y)) == id<Unit>(foreach(arrayOfNulls<Int>(0) as Array<Int>,{ e : Int -> })) //do not compile
|
||||
}
|
||||
class A<T>()
|
||||
|
||||
@@ -41,7 +34,7 @@ fun box() : String {
|
||||
a[0] = 0
|
||||
a[1] = 1
|
||||
a[2] = 2
|
||||
foreach(a, { el : Int -> System.out?.println(el) })
|
||||
foreach(a, { el : Int -> el })
|
||||
almostFilter(a, { el : Int -> el })
|
||||
main(null)
|
||||
return "OK"
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
// IGNORE_BACKEND: WASM
|
||||
// WASM_MUTE_REASON: IGNORED_IN_JS
|
||||
// IGNORE_BACKEND: JS_IR
|
||||
// IGNORE_BACKEND: JS_IR_ES6
|
||||
// TODO: muted automatically, investigate should it be ran for JS or not
|
||||
// IGNORE_BACKEND: JS, NATIVE
|
||||
|
||||
package w_range
|
||||
|
||||
fun box() : String {
|
||||
@@ -13,6 +6,5 @@ fun box() : String {
|
||||
1 -> i--
|
||||
else -> { i = 2 }
|
||||
}
|
||||
System.out?.println(i)
|
||||
return "OK"
|
||||
return if (i == 2) "OK" else i.toString()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user