Skip to content

Commit

Permalink
Resolve warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciekWin3 committed Mar 29, 2024
1 parent 847fc32 commit ce6c671
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Compiler/CodeAnalysis/Binding/BoundScope.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace Compiler.CodeAnalysis.Binding
{
internal sealed class BoundScope
{
private Dictionary<string, Symbol> symbols;
private Dictionary<string, Symbol>? symbols;

public BoundScope(BoundScope parent)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Compiler/CodeAnalysis/Evaluator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ internal sealed class Evaluator
{
private readonly BoundBlockStatement Root;
private readonly Dictionary<VariableSymbol, object> variables = new();
private Random random;
private Random? random;

private object lastValue = null!;
public Evaluator(BoundBlockStatement root, Dictionary<VariableSymbol, object> variables)
Expand Down

0 comments on commit ce6c671

Please sign in to comment.