From 8a1f0a3f0ecba5a33eb8eacfb16c08461ff974dd Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Sat, 23 Dec 2023 16:56:20 +0000 Subject: Set correct type for generic struct in environment --- .../shedlang/compiler/ast/typed/TypedStructDefinitionNodeMatcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/java/org/shedlang/compiler/ast') diff --git a/src/test/java/org/shedlang/compiler/ast/typed/TypedStructDefinitionNodeMatcher.java b/src/test/java/org/shedlang/compiler/ast/typed/TypedStructDefinitionNodeMatcher.java index 6dd41fe8..54b6cac8 100644 --- a/src/test/java/org/shedlang/compiler/ast/typed/TypedStructDefinitionNodeMatcher.java +++ b/src/test/java/org/shedlang/compiler/ast/typed/TypedStructDefinitionNodeMatcher.java @@ -41,7 +41,7 @@ public class TypedStructDefinitionNodeMatcher extends MatcherBuilder< ))); } - public TypedStructDefinitionNodeMatcher withTypeConstructor(Matcher> type) { + public TypedStructDefinitionNodeMatcher withTypeConstructor(Matcher> type) { return with(has("typeOrConstructor", x -> x.typeOrConstructor(), instanceOf( TypeOrConstructor.Constructor.class, has("value", x -> (TypeConstructor) x.value(), type) -- cgit v1.2.3