From 78d8871875d0d9e1c6375e283b01cf9583d21f73 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 4 Dec 2026 10:55:59 +0000 Subject: Add test for calling function with no args --- src/main/java/org/zwobble/hobgoblin/compiler/types/Types.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main/java') 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 params, Type returns) { + return new FunctionType(params, returns); + } } -- cgit v1.2.3