Skip to content

Commit

Permalink
TsTypeAssertion
Browse files Browse the repository at this point in the history
  • Loading branch information
voltrevo committed Jul 6, 2023
1 parent 496de4f commit 3fc5e62
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions valuescript_compiler/src/expression_compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,7 @@ impl<'a> ExpressionCompiler<'a> {
return CompiledExpression::empty();
}
TsTypeAssertion(ts_type_assertion) => {
self
.fnc
.todo(ts_type_assertion.span, "TsTypeAssertion expression");

return CompiledExpression::empty();
return self.compile(&ts_type_assertion.expr, target_register);
}
TsConstAssertion(ts_const_assertion) => {
return self.compile(&ts_const_assertion.expr, target_register);
Expand Down

0 comments on commit 3fc5e62

Please sign in to comment.