[IR] Removed wrong validation

IrEnumConstructorCall behaves differently whether it is inside IrEnumEntry or not.
Remove the validation for now.
This commit is contained in:
Igor Chevdar
2019-12-11 16:25:37 +03:00
parent 62ef280c53
commit 078cfc02a5
@@ -177,12 +177,6 @@ class CheckIrElementVisitor(
expression.ensureTypeIs(irBuiltIns.unitType)
}
override fun visitEnumConstructorCall(expression: IrEnumConstructorCall) {
super.visitEnumConstructorCall(expression)
expression.ensureTypeIs(irBuiltIns.unitType)
}
override fun visitInstanceInitializerCall(expression: IrInstanceInitializerCall) {
super.visitInstanceInitializerCall(expression)