Skip to content

Commit

Permalink
Removed unit
Browse files Browse the repository at this point in the history
  • Loading branch information
LPeter1997 committed Jan 22, 2025
1 parent 7034ab3 commit d935588
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 79 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ internal static class CallCandidate
public static CallCandidate<FunctionSymbol> Create(FunctionSymbol function) =>
CallCandidate<FunctionSymbol>.Create(function);

public static CallCandidate<Unit> Create(FunctionTypeSymbol functionType) =>
CallCandidate<Unit>.Create(functionType);
public static CallCandidate<object?> Create(FunctionTypeSymbol functionType) =>
CallCandidate<object?>.Create(functionType);
}

/// <summary>
Expand All @@ -27,7 +27,7 @@ public static CallCandidate<FunctionSymbol> Create(FunctionSymbol function) =>
new(function.Parameters, function.IsVariadic, function);

// TODO: Can a function type be variadic? This is probably something we should specify...
public static CallCandidate<Unit> Create(FunctionTypeSymbol functionType) =>
public static CallCandidate<object?> Create(FunctionTypeSymbol functionType) =>
new(functionType.Parameters, false, default);

/// <summary>
Expand Down
Loading

0 comments on commit d935588

Please sign in to comment.