Extract tests.

This commit is contained in:
chriseth
2018-04-18 22:52:29 +01:00
committed by Alex Beregszaszi
parent 39b7b44a8d
commit 17beac1e07
2 changed files with 10 additions and 15 deletions
@@ -0,0 +1,10 @@
contract Test {
struct S { uint8 a; mapping(uint => uint) b; uint8 c; }
S s;
function f() public {
S memory x;
x.b[1];
}
}
// ----
// TypeError: (118-121): Member "b" is not available in struct Test.S memory outside of storage.