JVM, JVM IR: Fix assertion status for regenerated anonymous objects

We always set the $assertionsDisabled field based on the top-level
enclosing class. This means that for anonymous objects we have to
rewrite the call to Class.desiredAssertionStatus.
This commit is contained in:
Steven Schäfer
2020-02-14 11:09:32 +01:00
committed by Ilmir Usmanov
parent 272f6abe69
commit ba90e87756
5 changed files with 53 additions and 19 deletions
@@ -1,6 +1,3 @@
// This test is ignored until KT-36794 is fixed
// IGNORE_BACKEND: JVM
// IGNORE_BACKEND: JVM_IR
// KOTLIN_CONFIGURATION_FLAGS: ASSERTIONS_MODE=jvm
inline fun inlineMe(crossinline c : () -> Unit) = {