aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/placeholder_in_function_context.sol
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2018-05-17 15:04:39 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-05-22 19:25:04 +0800
commit31fa6a24df0e698a2c086a8efb7162fa13c061b8 (patch)
treea1474b3f17f485bc44322d455188b48d6e810c1d /test/libsolidity/syntaxTests/parsing/placeholder_in_function_context.sol
parente97f9b6ba85b5cf5d347f1771524d0b0973e00bb (diff)
downloaddexon-solidity-31fa6a24df0e698a2c086a8efb7162fa13c061b8.tar.gz
dexon-solidity-31fa6a24df0e698a2c086a8efb7162fa13c061b8.tar.zst
dexon-solidity-31fa6a24df0e698a2c086a8efb7162fa13c061b8.zip
Move more parser tests to syntax tests
Diffstat (limited to 'test/libsolidity/syntaxTests/parsing/placeholder_in_function_context.sol')
-rw-r--r--test/libsolidity/syntaxTests/parsing/placeholder_in_function_context.sol11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/placeholder_in_function_context.sol b/test/libsolidity/syntaxTests/parsing/placeholder_in_function_context.sol
new file mode 100644
index 00000000..72546dc0
--- /dev/null
+++ b/test/libsolidity/syntaxTests/parsing/placeholder_in_function_context.sol
@@ -0,0 +1,11 @@
+contract c {
+ function fun() returns (uint r) {
+ var _ = 8;
+ return _ + 1;
+ }
+}
+// ----
+// Warning: (59-64): Use of the "var" keyword is deprecated.
+// Warning: (59-68): The type of this variable was inferred as uint8, which can hold values between 0 and 255. This is probably not desired. Use an explicit type to silence this warning.
+// Warning: (17-97): No visibility specified. Defaulting to "public".
+// Warning: (17-97): Function state mutability can be restricted to pure