Skip to content

Commit

Permalink
Yeeted unit
Browse files Browse the repository at this point in the history
  • Loading branch information
LPeter1997 committed Oct 30, 2024
1 parent 261b076 commit 541f941
Show file tree
Hide file tree
Showing 3 changed files with 145 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 541f941

Please sign in to comment.