Cleanup compiler warnings in IR-related modules

This commit is contained in:
Alexander Udalov
2019-08-28 12:41:53 +02:00
parent 406462d422
commit bf5ca2ed84
8 changed files with 11 additions and 18 deletions
@@ -247,7 +247,7 @@ open class IrFileSerializer(
is IrReturnableBlockSymbol ->
ProtoSymbolKind.RETURNABLE_BLOCK_SYMBOL
is IrFieldSymbol ->
if (symbol.owner.correspondingProperty.let { it == null || it.isDelegated })
if (symbol.owner.correspondingPropertySymbol?.owner.let { it == null || it.isDelegated })
ProtoSymbolKind.STANDALONE_FIELD_SYMBOL
else
ProtoSymbolKind.FIELD_SYMBOL