Skip to content

Commit 20aef3b

Browse files
Fixing in tests cases
Signed-off-by: Rodrigo Ribeiro <rodrigogribeiro@gmail.com>
1 parent e87cf11 commit 20aef3b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/examples/cases/bound-with-pragma.solc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ data TestType(x) = TestType;
1111

1212
// Variable 'bad' appears in context but not in instance head
1313
// But pragma disables the check, so should pass
14-
forall x . bad:TestHelper(x) => instance TestType(x):TestBound {}
14+
forall x bad . bad:TestHelper(x) => instance TestType(x):TestBound {}

test/examples/cases/pragma_merge_base.solc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ instance TestType2:TestClassC2(TestType2, TestType2) {}
4141
// === Bound Variable Violations ===
4242

4343
// Fails Bound Variable & Patterson: Variable 'c' appears in context but not in instance head
44-
forall a . c:TestClassB2(a) => instance TestType1(a):TestClassB1 {}
44+
forall a c . c:TestClassB2(a) => instance TestType1(a):TestClassB1 {}
4545

4646
// Bound Variable OK: Simple instance without context
4747
instance TestType1(TestType2):TestClassB2(TestType2) {}

test/examples/cases/pragma_merge_import.solc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ forall i j . (i,j):TestClassP1 => instance i:TestClassC3(j) {}
1919
forall i j . (i,j):TestClassP1 => instance i:TestClassP3(j) {}
2020

2121
// fails bound var & patterson (pragma set here)
22-
forall a . c:TestClassB1(a) => instance TestType1(a):TestClassB4 {}
22+
forall a c . c:TestClassB1(a) => instance TestType1(a):TestClassB4 {}
2323

2424
// fails bound var & patterson (pragma set in base)
25-
forall a . c:TestClassB1(a) => instance TestType1(a):TestClassB3 {}
25+
forall a c . c:TestClassB1(a) => instance TestType1(a):TestClassB3 {}
2626

0 commit comments

Comments
 (0)