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

6 lines
137 B
Solidity
Raw Normal View History

2018-04-17 09:39:40 +00:00
contract test {
2020-06-23 12:14:24 +00:00
constructor() returns (uint a) { }
2018-04-17 09:39:40 +00:00
}
// ----
2020-06-23 12:14:24 +00:00
// TypeError 9712: (39-47): Non-empty "returns" directive for constructor.