mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Added error codes to SyntaxTest expectations (updated tests)
This commit is contained in:
@@ -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.
|
||||
|
||||
+3
-3
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user