diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-12-04 10:55:59 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-12-04 10:55:59 +0000 |
| commit | 78d8871875d0d9e1c6375e283b01cf9583d21f73 (patch) | |
| tree | 157e8c8c7ab6285d76b71e1d18bc18438227f636 /src/main/java/org/zwobble | |
| parent | 6eebe3630f767458597c8f375f01e59a92a2855e (diff) | |
Add test for calling function with no args
Diffstat (limited to 'src/main/java/org/zwobble')
| -rw-r--r-- | src/main/java/org/zwobble/hobgoblin/compiler/types/Types.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/org/zwobble/hobgoblin/compiler/types/Types.java b/src/main/java/org/zwobble/hobgoblin/compiler/types/Types.java index 357fa64..6b7b8ac 100644 --- a/src/main/java/org/zwobble/hobgoblin/compiler/types/Types.java +++ b/src/main/java/org/zwobble/hobgoblin/compiler/types/Types.java @@ -43,4 +43,8 @@ public class Types { public static Type constantNumber(BigDecimal value) { return new TypeLevelValueType(new ConstantNumber(value)); } + + public static Type function(List<Type> params, Type returns) { + return new FunctionType(params, returns); + } } |
