aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/org/shedlang/compiler/ast
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2023-10-29 20:42:56 +0000
committerMichael Williamson <mike@zwobble.org>2023-10-29 20:42:56 +0000
commit927ae58be68fcf2a541c1af2a7b27d845e97dea6 (patch)
tree8497dc99343923037f331a129752321ef8a191c0 /src/test/java/org/shedlang/compiler/ast
parente7e76ee0917f7f77966af69a7bca68ba37e4252e (diff)
Parse params without types
Diffstat (limited to 'src/test/java/org/shedlang/compiler/ast')
-rw-r--r--src/test/java/org/shedlang/compiler/ast/untyped/UntypedNodeMatchers.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/java/org/shedlang/compiler/ast/untyped/UntypedNodeMatchers.java b/src/test/java/org/shedlang/compiler/ast/untyped/UntypedNodeMatchers.java
index db788968..4810f7e7 100644
--- a/src/test/java/org/shedlang/compiler/ast/untyped/UntypedNodeMatchers.java
+++ b/src/test/java/org/shedlang/compiler/ast/untyped/UntypedNodeMatchers.java
@@ -5,6 +5,7 @@ import org.shedlang.compiler.types.Visibility;
import org.zwobble.precisely.Matcher;
import java.math.BigInteger;
+import java.util.Optional;
import static org.zwobble.precisely.Matchers.*;
@@ -202,7 +203,7 @@ public class UntypedNodeMatchers {
public static Matcher<UntypedParamNode> isUntypedParamNode(
String name,
- Matcher<UntypedTypeLevelExpressionNode> type
+ Matcher<Optional<? extends UntypedTypeLevelExpressionNode>> type
) {
return allOf(
has("name", x -> x.name(), equalTo(name)),