mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Add source locations to syntax test expectations.
This commit is contained in:
@@ -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.
|
||||
|
||||
+2
-2
@@ -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.
|
||||
|
||||
+1
-1
@@ -5,4 +5,4 @@ contract test {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError: Identifier already declared.
|
||||
// DeclarationError: (75-81): Identifier already declared.
|
||||
|
||||
+2
-2
@@ -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"?
|
||||
|
||||
Reference in New Issue
Block a user