aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/parsing/two_exact_functions.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/two_exact_functions.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/two_exact_functions.sol')
-rw-r--r--test/libsolidity/syntaxTests/parsing/two_exact_functions.sol9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/parsing/two_exact_functions.sol b/test/libsolidity/syntaxTests/parsing/two_exact_functions.sol
new file mode 100644
index 00000000..0b3dda56
--- /dev/null
+++ b/test/libsolidity/syntaxTests/parsing/two_exact_functions.sol
@@ -0,0 +1,9 @@
+// with support of overloaded functions, during parsing,
+// we can't determine whether they match exactly, however
+// it will throw DeclarationError in following stage.
+contract test {
+ function fun(uint a) returns(uint r) { return a; }
+ function fun(uint a) returns(uint r) { return a; }
+}
+// ----
+// DeclarationError: (189-239): Function with same name and arguments defined twice.