Add source locations to syntax test expectations.

This commit is contained in:
Daniel Kirchner
2018-04-10 14:08:22 +02:00
parent 2bc4ec31e2
commit f03695731b
55 changed files with 216 additions and 108 deletions
@@ -3,4 +3,4 @@ contract test {
function fun() public { }
}
// ----
// DeclarationError: Function with same name and arguments defined twice.
// DeclarationError: (20-45): Function with same name and arguments defined twice.
@@ -5,4 +5,4 @@ contract test {
}
}
// ----
// DeclarationError: Identifier already declared.
// DeclarationError: (77-83): Identifier already declared.
@@ -6,5 +6,5 @@ contract test {
}
}
// ----
// Warning: Unused local variable.
// Warning: Unused local variable.
// Warning: (87-93): Unused local variable.
// Warning: (107-113): Unused local variable.
@@ -5,4 +5,4 @@ contract test {
}
}
// ----
// DeclarationError: Identifier already declared.
// DeclarationError: (75-81): Identifier already declared.
@@ -6,5 +6,5 @@ contract test {
}
}
// ----
// Warning: Unused local variable.
// Warning: Unused local variable.
// Warning: (87-93): Unused local variable.
// Warning: (105-111): Unused local variable.
@@ -3,5 +3,4 @@ contract test {
function f() pure public { uint32 variable; variable = 2; }
}
// ----
// Warning: This declaration shadows an existing declaration.
// Warning: (69-84): This declaration shadows an existing declaration.
@@ -8,4 +8,4 @@ contract test {
}
}
// ----
// DeclarationError: Undeclared identifier.
// DeclarationError: (123-124): Undeclared identifier.
@@ -6,4 +6,4 @@ contract test {
}
}
// ----
// DeclarationError: Undeclared identifier. Did you mean "x"?
// DeclarationError: (85-86): Undeclared identifier. Did you mean "x"?
@@ -8,4 +8,4 @@ contract test {
}
}
// ----
// DeclarationError: Undeclared identifier.
// DeclarationError: (154-155): Undeclared identifier.
@@ -7,4 +7,4 @@ contract test {
}
}
// ----
// DeclarationError: Undeclared identifier.
// DeclarationError: (93-94): Undeclared identifier.
@@ -5,4 +5,4 @@ contract test {
}
}
// ----
// DeclarationError: Undeclared identifier. Did you mean "a"?
// DeclarationError: (94-95): Undeclared identifier. Did you mean "a"?