Merge pull request #10489 from ethereum/develop

Merge develop into breaking.
This commit is contained in:
chriseth
2020-12-03 18:11:12 +01:00
committed by GitHub
68 changed files with 943 additions and 238 deletions
@@ -2,4 +2,4 @@
function f(x) { f(add) }
}
// ----
// ParserError 2314: (24-25): Expected '(' but got ')'
// ParserError 7104: (21-24): Builtin function "add" must be called.
@@ -1,6 +1,5 @@
{
// Test for the unreachable 6272_error
add := 1
}
// ----
// ParserError 2314: (47-49): Expected '(' but got ':='
// ParserError 6272: (7-9): Cannot assign to builtin function "add".
@@ -1,7 +1,6 @@
{
// Test for the unreachable 6272_error
function f() -> a, b {}
add, mul := f()
}
// ----
// ParserError 2314: (71-72): Expected '(' but got ','
// ParserError 6272: (31-32): Cannot assign to builtin function "add".
@@ -2,4 +2,4 @@
for {} mload {} {}
}
// ----
// ParserError 2314: (16-17): Expected '(' but got '{'
// ParserError 7104: (10-15): Builtin function "mload" must be called.
@@ -2,4 +2,4 @@
let x := byte
}
// ----
// ParserError 2314: (20-21): Expected '(' but got '}'
// ParserError 7104: (15-19): Builtin function "byte" must be called.
@@ -2,4 +2,4 @@
if mload {}
}
// ----
// ParserError 2314: (15-16): Expected '(' but got '{'
// ParserError 7104: (9-14): Builtin function "mload" must be called.
@@ -2,4 +2,4 @@
if calldatasize {}
}
// ----
// ParserError 2314: (22-23): Expected '(' but got '{'
// ParserError 7104: (9-21): Builtin function "calldatasize" must be called.
@@ -4,4 +4,4 @@
default {}
}
// ----
// ParserError 2314: (23-27): Expected '(' but got reserved keyword 'case'
// ParserError 7104: (13-18): Builtin function "mload" must be called.