Skip to content

Commit fc48022

Browse files
committed
build(cross): Not null smartcast for locals
1 parent 717ce32 commit fc48022

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src.compiler/csharp/CSharpEmitterContext.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,9 +1481,7 @@ export default class CSharpEmitterContext {
14811481

14821482
if (
14831483
symbol.flags & ts.SymbolFlags.Interface ||
1484-
symbol.flags & ts.SymbolFlags.Class ||
1485-
symbol.flags & ts.SymbolFlags.BlockScopedVariable ||
1486-
symbol.flags & ts.SymbolFlags.FunctionScopedVariable
1484+
symbol.flags & ts.SymbolFlags.Class
14871485
) {
14881486
return false;
14891487
}

0 commit comments

Comments
 (0)