diff options
Diffstat (limited to 'src/main/java/org')
| -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); + } } |
