Split GenerateNotNullAssertionsTests into standard box and bytecode tests
This commit is contained in:
committed by
Alexander Udalov
parent
dfd0042a5b
commit
dd20b74030
+33
@@ -0,0 +1,33 @@
|
||||
// KOTLIN_CONFIGURATION_FLAGS: +JVM.DISABLE_PARAM_ASSERTIONS
|
||||
// FILE: noAssertionsForKotlin.kt
|
||||
|
||||
class A {
|
||||
val x: Int = 42
|
||||
|
||||
fun foo(): String = ""
|
||||
|
||||
companion object {
|
||||
val y: Any? = 239
|
||||
|
||||
fun bar(): String = ""
|
||||
}
|
||||
}
|
||||
|
||||
fun baz(): String = ""
|
||||
|
||||
// FILE: noAssertionsForKotlinMain.kt
|
||||
|
||||
fun bar() {
|
||||
val x = A().x
|
||||
val foo = A().foo()
|
||||
val y = A.y
|
||||
val bar = A.bar()
|
||||
val baz = baz()
|
||||
}
|
||||
|
||||
// @A.class:
|
||||
// 0 kotlin/jvm/internal/Intrinsics
|
||||
// @NoAssertionsForKotlinKt.class:
|
||||
// 0 kotlin/jvm/internal/Intrinsics
|
||||
// @NoAssertionsForKotlinMainKt.class:
|
||||
// 0 kotlin/jvm/internal/Intrinsics
|
||||
Reference in New Issue
Block a user