mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[test] Update tests to include location string.
This commit is contained in:
@@ -2,5 +2,5 @@ interface I {
|
||||
function f();
|
||||
}
|
||||
// ----
|
||||
// SyntaxError 4937: (15-28): No visibility specified. Did you intend to add "external"?
|
||||
// TypeError 1560: (15-28): Functions in interfaces must be declared external.
|
||||
// SyntaxError 4937: (15-28='function f();'): No visibility specified. Did you intend to add "external"?
|
||||
// TypeError 1560: (15-28='function f();'): Functions in interfaces must be declared external.
|
||||
|
||||
@@ -2,4 +2,4 @@ interface I {
|
||||
function f() internal;
|
||||
}
|
||||
// ----
|
||||
// TypeError 1560: (15-37): Functions in interfaces must be declared external.
|
||||
// TypeError 1560: (15-37='function f() internal;'): Functions in interfaces must be declared external.
|
||||
|
||||
@@ -2,4 +2,4 @@ interface I {
|
||||
function f() private;
|
||||
}
|
||||
// ----
|
||||
// TypeError 1560: (15-36): Functions in interfaces must be declared external.
|
||||
// TypeError 1560: (15-36='function f() private;'): Functions in interfaces must be declared external.
|
||||
|
||||
@@ -2,4 +2,4 @@ interface I {
|
||||
function f() public;
|
||||
}
|
||||
// ----
|
||||
// TypeError 1560: (15-35): Functions in interfaces must be declared external.
|
||||
// TypeError 1560: (15-35='function f() public;'): Functions in interfaces must be declared external.
|
||||
|
||||
+3
-3
@@ -7,6 +7,6 @@ abstract contract C {
|
||||
function g() {}
|
||||
}
|
||||
// ----
|
||||
// SyntaxError 4937: (158-171): No visibility specified. Did you intend to add "external"?
|
||||
// SyntaxError 4937: (200-215): No visibility specified. Did you intend to add "public"?
|
||||
// TypeError 1560: (158-171): Functions in interfaces must be declared external.
|
||||
// SyntaxError 4937: (158-171='function f();'): No visibility specified. Did you intend to add "external"?
|
||||
// SyntaxError 4937: (200-215='function g() {}'): No visibility specified. Did you intend to add "public"?
|
||||
// TypeError 1560: (158-171='function f();'): Functions in interfaces must be declared external.
|
||||
|
||||
Reference in New Issue
Block a user