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
@@ -2,5 +2,5 @@ interface I {
function f();
}
// ----
// Warning: Functions in interfaces should be declared external.
// Warning: No visibility specified. Defaulting to "public". In interfaces it defaults to external.
// Warning: (15-28): Functions in interfaces should be declared external.
// Warning: (15-28): No visibility specified. Defaulting to "public". In interfaces it defaults to external.
@@ -3,5 +3,5 @@ interface I {
function f();
}
// ----
// SyntaxError: No visibility specified.
// TypeError: Functions in interfaces must be declared external.
// SyntaxError: (45-58): No visibility specified.
// TypeError: (45-58): Functions in interfaces must be declared external.
@@ -2,4 +2,4 @@ interface I {
function f() internal;
}
// ----
// TypeError: Functions in interfaces cannot be internal or private.
// TypeError: (15-37): Functions in interfaces cannot be internal or private.
@@ -2,4 +2,4 @@ interface I {
function f() private;
}
// ----
// TypeError: Functions in interfaces cannot be internal or private.
// TypeError: (15-36): Functions in interfaces cannot be internal or private.
@@ -2,4 +2,4 @@ interface I {
function f() public;
}
// ----
// Warning: Functions in interfaces should be declared external.
// Warning: (15-35): Functions in interfaces should be declared external.
@@ -3,4 +3,4 @@ interface I {
function f() public;
}
// ----
// TypeError: Functions in interfaces must be declared external.
// TypeError: (45-65): Functions in interfaces must be declared external.