mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Extract tests.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
pragma experimental "v0.5.0";
|
||||
contract A { function A() public {} }
|
||||
// ----
|
||||
// SyntaxError: (43-65): Functions are not allowed to have the same name as the contract. If you intend this to be a constructor, use "constructor(...) { ... }" to define it.
|
||||
Reference in New Issue
Block a user