aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-04-19 02:40:08 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-04-19 05:52:29 +0800
commit17beac1e07fba46f14d458ee600502c1da723f4f (patch)
tree680bc2ae64308825c0c96e0c37116c4a7e8009a6 /test/libsolidity/syntaxTests
parent39b7b44a8d63c9e50911ba724221b4a6399e7f5e (diff)
downloaddexon-solidity-17beac1e07fba46f14d458ee600502c1da723f4f.tar.gz
dexon-solidity-17beac1e07fba46f14d458ee600502c1da723f4f.tar.zst
dexon-solidity-17beac1e07fba46f14d458ee600502c1da723f4f.zip
Extract tests.
Diffstat (limited to 'test/libsolidity/syntaxTests')
-rw-r--r--test/libsolidity/syntaxTests/memberLookup/memory_structs_with_mappings.sol10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/memberLookup/memory_structs_with_mappings.sol b/test/libsolidity/syntaxTests/memberLookup/memory_structs_with_mappings.sol
new file mode 100644
index 00000000..bdafc754
--- /dev/null
+++ b/test/libsolidity/syntaxTests/memberLookup/memory_structs_with_mappings.sol
@@ -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.