Skip to content

Commit e82aa70

Browse files
committed
Revert "Remove function assignment validation in type assertion"
This reverts commit f17da36.
1 parent 8aad3ca commit e82aa70

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/LuaTransformer.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4747,6 +4747,11 @@ export class LuaTransformer {
47474747
}
47484748

47494749
public transformAssertionExpression(expression: ts.AssertionExpression): ExpressionVisitResult {
4750+
this.validateFunctionAssignment(
4751+
expression,
4752+
this.checker.getTypeAtLocation(expression.expression),
4753+
this.checker.getTypeAtLocation(expression.type)
4754+
);
47504755
return this.transformExpression(expression.expression);
47514756
}
47524757

0 commit comments

Comments
 (0)