mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove trailing whitespace in all contract files.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
contract C {
|
||||
uint[] x;
|
||||
function() external {
|
||||
function() external {
|
||||
uint[] storage y = x;
|
||||
assembly {
|
||||
pop(y)
|
||||
@@ -8,4 +8,4 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (119-120): You have to use the _slot or _offset suffix to access storage reference variables.
|
||||
// TypeError: (118-119): You have to use the _slot or _offset suffix to access storage reference variables.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
contract C {
|
||||
uint[] x;
|
||||
function() external {
|
||||
function() external {
|
||||
uint[] storage y = x;
|
||||
assembly {
|
||||
y_slot := 1
|
||||
@@ -9,5 +9,5 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (115-121): Storage variables cannot be assigned to.
|
||||
// TypeError: (139-147): Storage variables cannot be assigned to.
|
||||
// TypeError: (114-120): Storage variables cannot be assigned to.
|
||||
// TypeError: (138-146): Storage variables cannot be assigned to.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
contract C {
|
||||
uint[] x;
|
||||
function() external {
|
||||
function() external {
|
||||
uint[] storage y = x;
|
||||
assembly {
|
||||
pop(y_slot)
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
contract C {
|
||||
uint[] x;
|
||||
function() external {
|
||||
function() external {
|
||||
uint[] memory y = x;
|
||||
assembly {
|
||||
pop(y_slot)
|
||||
@@ -9,5 +9,5 @@ contract C {
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (118-124): The suffixes _offset and _slot can only be used on storage variables.
|
||||
// TypeError: (142-150): The suffixes _offset and _slot can only be used on storage variables.
|
||||
// TypeError: (117-123): The suffixes _offset and _slot can only be used on storage variables.
|
||||
// TypeError: (141-149): The suffixes _offset and _slot can only be used on storage variables.
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@ contract C {
|
||||
(uint a) = f();
|
||||
a;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@ contract C {
|
||||
(uint a, string memory b,,) = f();
|
||||
a; b;
|
||||
}
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (85-118): Type string memory is not implicitly convertible to expected type uint256.
|
||||
// TypeError: (85-118): Type uint256 is not implicitly convertible to expected type string memory.
|
||||
|
||||
+1
-1
@@ -5,6 +5,6 @@ contract C {
|
||||
}
|
||||
a;
|
||||
}
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError: (99-100): Undeclared identifier.
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ contract C {
|
||||
(uint a, uint b, uint c) = (a, b, c);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// DeclarationError: (79-80): Undeclared identifier. "a" is not (or not yet) visible at this point.
|
||||
// DeclarationError: (82-83): Undeclared identifier. "b" is not (or not yet) visible at this point.
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@ contract C {
|
||||
function f() internal pure returns (uint, uint, uint, S storage, uint, uint) {
|
||||
(,,,s.x[2](),,) = f();
|
||||
}
|
||||
}
|
||||
}
|
||||
// ----
|
||||
// TypeError: (160-168): Expression has to be an lvalue.
|
||||
|
||||
Reference in New Issue
Block a user