mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
update tests
This commit is contained in:
committed by
chriseth
parent
baa7251f1d
commit
43353bb6ca
@@ -2,4 +2,4 @@
|
||||
function f(x) { f(add) }
|
||||
}
|
||||
// ----
|
||||
// ParserError 2314: (24-25): Expected '(' but got ')'
|
||||
// DeclarationError 8198: (21-24): Identifier not found.
|
||||
|
||||
@@ -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,5 @@
|
||||
for {} mload {} {}
|
||||
}
|
||||
// ----
|
||||
// ParserError 2314: (16-17): Expected '(' but got '{'
|
||||
// DeclarationError 8198: (10-15): Identifier not found.
|
||||
// TypeError 1733: (10-15): Expected a value of boolean type "bool" but got "u256"
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
let x := byte
|
||||
}
|
||||
// ----
|
||||
// ParserError 2314: (20-21): Expected '(' but got '}'
|
||||
// DeclarationError 8198: (15-19): Identifier not found.
|
||||
|
||||
@@ -2,4 +2,5 @@
|
||||
if mload {}
|
||||
}
|
||||
// ----
|
||||
// ParserError 2314: (15-16): Expected '(' but got '{'
|
||||
// DeclarationError 8198: (9-14): Identifier not found.
|
||||
// TypeError 1733: (9-14): Expected a value of boolean type "bool" but got "u256"
|
||||
|
||||
@@ -2,4 +2,5 @@
|
||||
if calldatasize {}
|
||||
}
|
||||
// ----
|
||||
// ParserError 2314: (22-23): Expected '(' but got '{'
|
||||
// DeclarationError 8198: (9-21): Identifier not found.
|
||||
// TypeError 1733: (9-21): Expected a value of boolean type "bool" but got "u256"
|
||||
|
||||
@@ -4,4 +4,4 @@
|
||||
default {}
|
||||
}
|
||||
// ----
|
||||
// ParserError 2314: (23-27): Expected '(' but got reserved keyword 'case'
|
||||
// DeclarationError 8198: (13-18): Identifier not found.
|
||||
|
||||
Reference in New Issue
Block a user