diff options
author | chriseth <chris@ethereum.org> | 2018-03-16 07:47:12 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-03-16 07:47:32 +0800 |
commit | c9db105ad7c8cb4913d0e0ed859ce4808aae288a (patch) | |
tree | cd36eb0ec7092842ef4c7a7b260c71c3884fd780 /test/libsolidity/syntaxTests/scoping/scoping_for3.sol | |
parent | 658955579050c51cc9a714adc5986212796f8196 (diff) | |
download | dexon-solidity-c9db105ad7c8cb4913d0e0ed859ce4808aae288a.tar.gz dexon-solidity-c9db105ad7c8cb4913d0e0ed859ce4808aae288a.tar.zst dexon-solidity-c9db105ad7c8cb4913d0e0ed859ce4808aae288a.zip |
Extract scoping tests.
Diffstat (limited to 'test/libsolidity/syntaxTests/scoping/scoping_for3.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/scoping/scoping_for3.sol | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/scoping/scoping_for3.sol b/test/libsolidity/syntaxTests/scoping/scoping_for3.sol new file mode 100644 index 00000000..9bc7d569 --- /dev/null +++ b/test/libsolidity/syntaxTests/scoping/scoping_for3.sol @@ -0,0 +1,11 @@ +pragma experimental "v0.5.0"; +contract test { + function f() pure public { + for (uint x = 0; x < 10; x ++){ + x = 2; + } + x = 4; + } +} +// ---- +// DeclarationError: Undeclared identifier. |