Fix IR generation: temporary variable in 'hashCode()' for data class should be 'var'

This commit is contained in:
Dmitry Petrov
2016-12-22 15:56:17 +03:00
parent 514fc02938
commit d9271b54fb
5 changed files with 15 additions and 8 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ FILE /dataClasses.kt
CONST String type=kotlin.String value=')'
FUN GENERATED_DATA_CLASS_MEMBER public open override fun hashCode(): kotlin.Int
BLOCK_BODY
VAR IR_TEMPORARY_VARIABLE val tmp0_result: kotlin.Int
VAR IR_TEMPORARY_VARIABLE var tmp0_result: kotlin.Int
CONST Int type=kotlin.Int value='0'
SET_VAR 'tmp0_result: Int' type=kotlin.Unit origin=EQ
CALL 'hashCode(): Int' type=kotlin.Int origin=null