We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0134ba0 commit 454c0efCopy full SHA for 454c0ef
src/Application/HydraScript.Application.StaticAnalysis/Visitors/SemanticChecker.cs
@@ -138,7 +138,7 @@ public Type Visit(ExpressionStatement visitable) =>
138
139
public Type Visit(IdentifierReference visitable)
140
{
141
- var symbol = _symbolTables[visitable.Scope].FindSymbol<ISymbol>(visitable.Name);
+ var symbol = _symbolTables[visitable.Scope].FindSymbol<VariableSymbol>(visitable.Name);
142
if (symbol is { Initialized: false })
143
throw new AccessBeforeInitialization(visitable);
144
return symbol?.Type ?? throw new UnknownIdentifierReference(visitable);
0 commit comments