JVM: do not generate assertion message for captured fields
#KT-64615 Fixed
This commit is contained in:
committed by
Space Team
parent
f01e633f8b
commit
dd5fffebf2
+4
-1
@@ -766,7 +766,10 @@ private class TypeOperatorLowering(private val backendContext: JvmBackendContext
|
||||
if (backendContext.config.noSourceCodeInNotNullAssertionExceptions) {
|
||||
return when (val argument = typeOperatorCall.argument) {
|
||||
is IrCall -> "${argument.symbol.owner.name.asString()}(...)"
|
||||
is IrGetField -> argument.symbol.owner.name.asString()
|
||||
is IrGetField -> {
|
||||
val field = argument.symbol.owner
|
||||
field.name.asString().takeUnless { field.origin.isSynthetic }
|
||||
}
|
||||
else -> null
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user