1 2 3 4 5 6
contract test { function fun() public { } function fun() public { } } // ---- // DeclarationError: (20-45): Function with same name and arguments defined twice.