Put $assertionDisabled field into inline-site's class
The generated code is more inline with java, and we avoid the error of accessing package-private field outside of the package. However, this changes semantics a bit. Now, a user should set assertion status of inline-site's package, instead of inline function's one. #KT-28317: Fixed
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
// IGNORE_BACKEND: JVM_IR
|
||||
// KOTLIN_CONFIGURATION_FLAGS: ASSERTIONS_MODE=jvm
|
||||
|
||||
inline fun inlineMe(crossinline c : () -> Unit) = { c() }
|
||||
|
||||
class A {
|
||||
fun inlineSite() {
|
||||
inlineMe {
|
||||
assert(true)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 1 GETSTATIC A\$inlineSite\$\$inlined\$inlineMe\$1.\$assertionsDisabled
|
||||
Reference in New Issue
Block a user