Skip to content

Commit b4e7f00

Browse files
committed
Revert "Remove function assignment validation in type assertion"
This reverts commit f17da36.
1 parent 464bba1 commit b4e7f00

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/LuaTransformer.ts

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

47474747
public transformAssertionExpression(expression: ts.AssertionExpression): ExpressionVisitResult {
4748+
this.validateFunctionAssignment(
4749+
expression,
4750+
this.checker.getTypeAtLocation(expression.expression),
4751+
this.checker.getTypeAtLocation(expression.type)
4752+
);
47484753
return this.transformExpression(expression.expression);
47494754
}
47504755

0 commit comments

Comments
 (0)