solidity/test/libsolidity/syntaxTests/constructor/returns_in_constructor_new.sol
2018-04-18 14:24:35 +02:00

6 lines
139 B
Solidity

contract test {
constructor() public returns (uint a) { }
}
// ----
// TypeError: (46-54): Non-empty "returns" directive for constructor.