mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge remote-tracking branch 'origin/develop' into breaking
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
{
|
||||
function f() -> a, b {}
|
||||
function g() -> a, b, c {}
|
||||
let x, y
|
||||
x, x := f()
|
||||
y, x, y := g()
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 9005: (70-81): Variable x occurs multiple times on the left-hand side of the assignment.
|
||||
// DeclarationError 9005: (84-98): Variable y occurs multiple times on the left-hand side of the assignment.
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
function f() -> a, b {}
|
||||
let x, x := f()
|
||||
}
|
||||
// ----
|
||||
// DeclarationError 1395: (30-45): Variable name x already taken in this scope.
|
||||
Reference in New Issue
Block a user