aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/scoping/scoping_activation.sol
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-03-16 07:47:12 +0800
committerchriseth <chris@ethereum.org>2018-03-16 07:47:32 +0800
commitc9db105ad7c8cb4913d0e0ed859ce4808aae288a (patch)
treecd36eb0ec7092842ef4c7a7b260c71c3884fd780 /test/libsolidity/syntaxTests/scoping/scoping_activation.sol
parent658955579050c51cc9a714adc5986212796f8196 (diff)
downloaddexon-solidity-c9db105ad7c8cb4913d0e0ed859ce4808aae288a.tar
dexon-solidity-c9db105ad7c8cb4913d0e0ed859ce4808aae288a.tar.gz
dexon-solidity-c9db105ad7c8cb4913d0e0ed859ce4808aae288a.tar.bz2
dexon-solidity-c9db105ad7c8cb4913d0e0ed859ce4808aae288a.tar.lz
dexon-solidity-c9db105ad7c8cb4913d0e0ed859ce4808aae288a.tar.xz
dexon-solidity-c9db105ad7c8cb4913d0e0ed859ce4808aae288a.tar.zst
dexon-solidity-c9db105ad7c8cb4913d0e0ed859ce4808aae288a.zip
Extract scoping tests.
Diffstat (limited to 'test/libsolidity/syntaxTests/scoping/scoping_activation.sol')
-rw-r--r--test/libsolidity/syntaxTests/scoping/scoping_activation.sol9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/scoping/scoping_activation.sol b/test/libsolidity/syntaxTests/scoping/scoping_activation.sol
new file mode 100644
index 00000000..0ed74a00
--- /dev/null
+++ b/test/libsolidity/syntaxTests/scoping/scoping_activation.sol
@@ -0,0 +1,9 @@
+pragma experimental "v0.5.0";
+contract test {
+ function f() pure public {
+ x = 3;
+ uint x;
+ }
+}
+// ----
+// DeclarationError: Undeclared identifier. Did you mean "x"?