solidity/test/libsolidity/syntaxTests/constructor/constructor_internal_function.sol

6 lines
212 B
Solidity
Raw Normal View History

2020-07-06 13:47:40 +00:00
contract A {
constructor(function() internal) {}
}
// ----
// TypeError 4103: (29-49): Internal type is not allowed for public or external functions. You can make the contract abstract to avoid this problem.