Skip to content

Commit

Permalink
fix: NRE when overriding variable without extending a class
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsDeltin committed Apr 19, 2024
1 parent aa78b4d commit 8a0662b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ void TryToExtend(CodeType type, DocRange range)
public override CodeType GetInstance() => new DefinedClass(_parseInfo, this, GenericTypes);
public override CodeType GetInstance(GetInstanceInfo instanceInfo) => new DefinedClass(_parseInfo, this, instanceInfo.Generics);
public IMethod GetOverridenFunction(DeltinScript deltinScript, FunctionOverrideInfo overrideInfo) => Extends.Elements.GetVirtualFunction(deltinScript, overrideInfo.Name, overrideInfo.ParameterTypes);
public IVariableInstance GetOverridenVariable(string variableName) => Extends.Elements.GetVirtualVariable(variableName);
public IVariableInstance GetOverridenVariable(string variableName) => Extends?.Elements.GetVirtualVariable(variableName);
Scope IScopeProvider.GetObjectBasedScope() => _operationalObjectScope;
Scope IScopeProvider.GetStaticBasedScope() => _operationalStaticScope;
void IScopeAppender.AddObjectBasedScope(IMethod function)
Expand Down

0 comments on commit 8a0662b

Please sign in to comment.