mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update tests.
This commit is contained in:
parent
87241fd58c
commit
2211739fc4
@ -3,4 +3,4 @@ contract C {
|
|||||||
function() {}
|
function() {}
|
||||||
}
|
}
|
||||||
// ----
|
// ----
|
||||||
// Warning: (90-103): No visibility specified. Defaulting to "public".
|
// TypeError: (90-103): Fallback function must be defined as "external".
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
contract C {
|
contract C {
|
||||||
uint[] x;
|
uint[] x;
|
||||||
function() public {
|
function() external {
|
||||||
uint[] storage y = x;
|
uint[] storage y = x;
|
||||||
assembly {
|
assembly {
|
||||||
pop(y)
|
pop(y)
|
||||||
@ -8,4 +8,4 @@ contract C {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// ----
|
// ----
|
||||||
// TypeError: (117-118): You have to use the _slot or _offset suffix to access storage reference variables.
|
// TypeError: (119-120): You have to use the _slot or _offset suffix to access storage reference variables.
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
contract C {
|
contract C {
|
||||||
uint[] x;
|
uint[] x;
|
||||||
function() public {
|
function() external {
|
||||||
uint[] storage y = x;
|
uint[] storage y = x;
|
||||||
assembly {
|
assembly {
|
||||||
pop(y_slot)
|
pop(y_slot)
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
pragma experimental "v0.5.0";
|
|
||||||
contract C {
|
|
||||||
function () external { }
|
|
||||||
}
|
|
@ -2,3 +2,4 @@ contract C {
|
|||||||
function () internal { }
|
function () internal { }
|
||||||
}
|
}
|
||||||
// ----
|
// ----
|
||||||
|
// TypeError: (17-41): Fallback function must be defined as "external".
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
pragma experimental "v0.5.0";
|
|
||||||
contract C {
|
|
||||||
function () internal { }
|
|
||||||
}
|
|
||||||
// ----
|
|
||||||
// TypeError: (47-71): Fallback function must be defined as "external".
|
|
@ -2,3 +2,4 @@ contract C {
|
|||||||
function () private { }
|
function () private { }
|
||||||
}
|
}
|
||||||
// ----
|
// ----
|
||||||
|
// TypeError: (17-40): Fallback function must be defined as "external".
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
pragma experimental "v0.5.0";
|
|
||||||
contract C {
|
|
||||||
function () private { }
|
|
||||||
}
|
|
||||||
// ----
|
|
||||||
// TypeError: (47-70): Fallback function must be defined as "external".
|
|
@ -2,3 +2,4 @@ contract C {
|
|||||||
function () public { }
|
function () public { }
|
||||||
}
|
}
|
||||||
// ----
|
// ----
|
||||||
|
// TypeError: (17-39): Fallback function must be defined as "external".
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
pragma experimental "v0.5.0";
|
|
||||||
contract C {
|
|
||||||
function () public { }
|
|
||||||
}
|
|
||||||
// ----
|
|
||||||
// TypeError: (47-69): Fallback function must be defined as "external".
|
|
Loading…
Reference in New Issue
Block a user