Skip to content

Commit

Permalink
Missing filter cases
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaelMayer committed Oct 18, 2024
1 parent 1f81743 commit 73ce2b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/DafnyCore/AST/Attributes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,9 @@ public static Attributes ExpandAtAttribute(Program program, UserSuppliedAtAttrib
.WithArg("functionName", Type.ResolvedString(), DefaultString(""))
.Filter(attributeHost => attributeHost is Function),
BuiltIn("IsolateAssertions")
.Filter(attributeHost => attributeHost is MemberDecl),
BuiltIn("Options").WithArg(TupleItem0Name, Type.ResolvedString())
.Filter(attributeHost => attributeHost is MemberDecl or DatatypeDecl or RedirectingTypeDecl),
BuiltIn("Options")
.WithArg(TupleItem0Name, Type.ResolvedString())
.Filter(attributeHost => attributeHost is ModuleDecl or ModuleDefinition),
};

Expand Down

0 comments on commit 73ce2b0

Please sign in to comment.