diff options
Merge pull request #3748 from ethereum/extractScopingTests
Extract scoping tests
Diffstat (limited to 'test/libsolidity/syntaxTests/scoping/double_function_declaration.sol')
-rw-r--r-- | test/libsolidity/syntaxTests/scoping/double_function_declaration.sol | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/libsolidity/syntaxTests/scoping/double_function_declaration.sol b/test/libsolidity/syntaxTests/scoping/double_function_declaration.sol new file mode 100644 index 00000000..2841fd38 --- /dev/null +++ b/test/libsolidity/syntaxTests/scoping/double_function_declaration.sol @@ -0,0 +1,6 @@ +contract test { + function fun() public { } + function fun() public { } +} +// ---- +// DeclarationError: Function with same name and arguments defined twice. |