aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/075_fallback_function_with_arguments.sol
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-06-05 01:54:14 +0800
committerGitHub <noreply@github.com>2018-06-05 01:54:14 +0800
commit4073c02cf34254dce2710f48acb95e9d39b11f0a (patch)
tree1b023f448d7c29ccbd62d14e9d33c2a199d80eaf /test/libsolidity/syntaxTests/nameAndTypeResolution/075_fallback_function_with_arguments.sol
parentc2e4c4651a725a55f9ab0995fdebd25165a656f3 (diff)
parent1ce40f4089bc2662430dbc66f71702c7e380e2b0 (diff)
downloaddexon-solidity-4073c02cf34254dce2710f48acb95e9d39b11f0a.tar
dexon-solidity-4073c02cf34254dce2710f48acb95e9d39b11f0a.tar.gz
dexon-solidity-4073c02cf34254dce2710f48acb95e9d39b11f0a.tar.bz2
dexon-solidity-4073c02cf34254dce2710f48acb95e9d39b11f0a.tar.lz
dexon-solidity-4073c02cf34254dce2710f48acb95e9d39b11f0a.tar.xz
dexon-solidity-4073c02cf34254dce2710f48acb95e9d39b11f0a.tar.zst
dexon-solidity-4073c02cf34254dce2710f48acb95e9d39b11f0a.zip
Merge pull request #4208 from ethereum/extract-name-and-type-tests
Extract name and type tests
Diffstat (limited to 'test/libsolidity/syntaxTests/nameAndTypeResolution/075_fallback_function_with_arguments.sol')
-rw-r--r--test/libsolidity/syntaxTests/nameAndTypeResolution/075_fallback_function_with_arguments.sol6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/nameAndTypeResolution/075_fallback_function_with_arguments.sol b/test/libsolidity/syntaxTests/nameAndTypeResolution/075_fallback_function_with_arguments.sol
new file mode 100644
index 00000000..2c1d2a1b
--- /dev/null
+++ b/test/libsolidity/syntaxTests/nameAndTypeResolution/075_fallback_function_with_arguments.sol
@@ -0,0 +1,6 @@
+contract C {
+ uint x;
+ function(uint a) public { x = 2; }
+}
+// ----
+// TypeError: (37-45): Fallback function cannot take parameters.