aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/array/string_pop.sol
diff options
context:
space:
mode:
Diffstat (limited to 'test/libsolidity/syntaxTests/array/string_pop.sol')
-rw-r--r--test/libsolidity/syntaxTests/array/string_pop.sol8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/array/string_pop.sol b/test/libsolidity/syntaxTests/array/string_pop.sol
new file mode 100644
index 00000000..700fda16
--- /dev/null
+++ b/test/libsolidity/syntaxTests/array/string_pop.sol
@@ -0,0 +1,8 @@
+contract C {
+ string data;
+ function test() public {
+ data.pop();
+ }
+}
+// ----
+// TypeError: (65-73): Member "pop" not found or not visible after argument-dependent lookup in string storage ref.