aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/exp_expression.sol
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-07-02 19:06:59 +0800
committerGitHub <noreply@github.com>2018-07-02 19:06:59 +0800
commit9a71b69f4009d6e0ccac715648b06994ef321d3f (patch)
treecb86c07d714f427a07150ef8d97143c1c864eefb /test/libsolidity/syntaxTests/parsing/exp_expression.sol
parent8a4980c05ef7d3408dfb138b17b1610ef648d441 (diff)
parent1b008c62a1e2475fe0fc160150dca482009912d1 (diff)
downloaddexon-solidity-9a71b69f4009d6e0ccac715648b06994ef321d3f.tar
dexon-solidity-9a71b69f4009d6e0ccac715648b06994ef321d3f.tar.gz
dexon-solidity-9a71b69f4009d6e0ccac715648b06994ef321d3f.tar.bz2
dexon-solidity-9a71b69f4009d6e0ccac715648b06994ef321d3f.tar.lz
dexon-solidity-9a71b69f4009d6e0ccac715648b06994ef321d3f.tar.xz
dexon-solidity-9a71b69f4009d6e0ccac715648b06994ef321d3f.tar.zst
dexon-solidity-9a71b69f4009d6e0ccac715648b06994ef321d3f.zip
Merge pull request #4386 from ethereum/testingDefaultVisibility
Specify default visibility in syntax tests
Diffstat (limited to 'test/libsolidity/syntaxTests/parsing/exp_expression.sol')
-rw-r--r--test/libsolidity/syntaxTests/parsing/exp_expression.sol7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/exp_expression.sol b/test/libsolidity/syntaxTests/parsing/exp_expression.sol
index cdabb996..6b307ea0 100644
--- a/test/libsolidity/syntaxTests/parsing/exp_expression.sol
+++ b/test/libsolidity/syntaxTests/parsing/exp_expression.sol
@@ -1,9 +1,8 @@
contract test {
- function fun(uint256 a) {
+ function fun(uint256 a) public {
uint256 x = 3 ** a;
}
}
// ----
-// Warning: (20-79): No visibility specified. Defaulting to "public".
-// Warning: (54-63): Unused local variable.
-// Warning: (20-79): Function state mutability can be restricted to pure
+// Warning: (61-70): Unused local variable.
+// Warning: (20-86): Function state mutability can be restricted to pure