[Test] Migrate tests for java 15 to regular test infrastructure
This commit is contained in:
committed by
teamcityserver
parent
4f73ebbcbd
commit
c168a561df
+5
-5
@@ -2,16 +2,16 @@
|
||||
// !LANGUAGE: +JvmRecordSupport
|
||||
// JVM_TARGET: 15
|
||||
// ENABLE_JVM_PREVIEW
|
||||
|
||||
// MODULE: lib
|
||||
// FILE: A.kt
|
||||
@JvmRecord
|
||||
data class MyRecord(val foo: String, val bar: String)
|
||||
|
||||
// MODULE: main(lib)
|
||||
// FILE: B.kt
|
||||
|
||||
fun main() {
|
||||
fun box(): String {
|
||||
val myRecord = MyRecord("O", "K")
|
||||
val s = myRecord.foo + myRecord.bar
|
||||
if (s != "OK") {
|
||||
throw AssertionError("fail: $s")
|
||||
}
|
||||
return myRecord.foo + myRecord.bar
|
||||
}
|
||||
Reference in New Issue
Block a user