Added error codes to SyntaxTest expectations (updated tests)

This commit is contained in:
a3d4
2020-06-22 16:51:47 +02:00
parent 8ebe7676d5
commit e04cedafc5
1775 changed files with 3951 additions and 3952 deletions
@@ -2,4 +2,4 @@ contract C {
function f() pure { }
}
// ----
// SyntaxError: (17-38): No visibility specified. Did you intend to add "public"?
// SyntaxError 4937: (17-38): No visibility specified. Did you intend to add "public"?
@@ -2,5 +2,5 @@ interface I {
function f();
}
// ----
// SyntaxError: (15-28): No visibility specified. Did you intend to add "external"?
// TypeError: (15-28): Functions in interfaces must be declared external.
// SyntaxError 4937: (15-28): No visibility specified. Did you intend to add "external"?
// TypeError 1560: (15-28): Functions in interfaces must be declared external.
@@ -2,4 +2,4 @@ interface I {
function f() internal;
}
// ----
// TypeError: (15-37): Functions in interfaces must be declared external.
// TypeError 1560: (15-37): Functions in interfaces must be declared external.
@@ -2,4 +2,4 @@ interface I {
function f() private;
}
// ----
// TypeError: (15-36): Functions in interfaces must be declared external.
// TypeError 1560: (15-36): Functions in interfaces must be declared external.
@@ -2,4 +2,4 @@ interface I {
function f() public;
}
// ----
// TypeError: (15-35): Functions in interfaces must be declared external.
// TypeError 1560: (15-35): Functions in interfaces must be declared external.
@@ -7,6 +7,6 @@ abstract contract C {
function g() {}
}
// ----
// SyntaxError: (158-171): No visibility specified. Did you intend to add "external"?
// SyntaxError: (200-215): No visibility specified. Did you intend to add "public"?
// TypeError: (158-171): Functions in interfaces must be declared external.
// 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.
@@ -10,4 +10,4 @@ library L2 {
function g(uint) public pure returns (uint) { return 2; }
}
// ----
// TypeError: (88-93): Libraries cannot call their own functions externally.
// TypeError 6700: (88-93): Libraries cannot call their own functions externally.