mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
14 lines
342 B
Solidity
14 lines
342 B
Solidity
contract Test {
|
|
|
|
struct Sample { bool flag; }
|
|
Sample public s;
|
|
|
|
function testFunc() external {
|
|
if(true){}
|
|
Sample storage t;
|
|
t.flag=true;
|
|
}
|
|
}
|
|
// ----
|
|
// TypeError 3464: (155-156): This variable is of storage pointer type and can be accessed without prior assignment, which would lead to undefined behaviour.
|