diff --git a/ets2panda/checker/types/typeRelation.cpp b/ets2panda/checker/types/typeRelation.cpp index 0ac99057639f627dc09c5039587818fab9b19e67..80a8ad001a584dbb859a1dbd3ab14acf798ae4dc 100644 --- a/ets2panda/checker/types/typeRelation.cpp +++ b/ets2panda/checker/types/typeRelation.cpp @@ -205,7 +205,6 @@ bool TypeRelation::IsCastableTo(Type *const source, Type *const target) bool TypeRelation::IsLegalBoxedPrimitiveConversion(Type *target, Type *source) { - auto type = this->GetNode()->TsType(); ETSChecker *checker = this->GetChecker()->AsETSChecker(); if (target == nullptr || source == nullptr) { @@ -226,7 +225,6 @@ bool TypeRelation::IsLegalBoxedPrimitiveConversion(Type *target, Type *source) return false; } bool res = this->Result(this->IsAssignableTo(sourceUnboxedType, target)); - this->GetNode()->SetTsType(type); return res; } @@ -253,7 +251,6 @@ bool TypeRelation::IsLegalBoxedPrimitiveConversion(Type *target, Type *source) } bool res = this->Result(this->IsAssignableTo(sourceUnboxedType, targetUnboxedType)); - this->GetNode()->SetTsType(type); return res; }