Skip to content

Commit

Permalink
Civl test refactoring (#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
shazqadeer authored Jun 20, 2023
1 parent 1969ad0 commit 980ca54
Show file tree
Hide file tree
Showing 76 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Source/Core/AST/AbsyCmd.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3505,12 +3505,12 @@ private void TypecheckCallCmdInActionDecl(TypecheckingContext tc)
{
if (callerActionDecl.Creates.All(x => x.ActionName != datatypeTypeCtorDecl.Name))
{
tc.Error(this, "primitive instantiated on type not in the creates clause of caller");
tc.Error(this, "primitive call must be instantiated with a pending async type in the creates clause of caller");
}
}
else
{
tc.Error(this, "type parameter to primitive call must be instantiated with a pending async type");
tc.Error(this, "primitive call must be instantiated with a pending async type");
}
}
else if (Proc is ActionDecl calleeActionDecl)
Expand All @@ -3534,7 +3534,7 @@ private void TypecheckCallCmdInActionDecl(TypecheckingContext tc)
}
else
{
tc.Error(this, "an action may only call actions or pending async primitives");
tc.Error(this, "an action may only call actions or primitives");
}
}

Expand Down
2 changes: 1 addition & 1 deletion Test/civl/regression-tests/pending-async-2.bpl.expect
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pending-async-2.bpl(17,2): Error: primitive instantiated on type not in the creates clause of caller
pending-async-2.bpl(17,2): Error: primitive call must be instantiated with a pending async type in the creates clause of caller
1 type checking errors detected in pending-async-2.bpl
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 980ca54

Please sign in to comment.