solidity/test/libsolidity/syntaxTests/nameAndTypeResolution/462_callable_crash.sol

11 lines
324 B
Solidity
Raw Normal View History

contract C {
struct S { uint a; bool x; }
S public s;
function C() public {
3({a: 1, x: true});
}
}
// ----
// Warning: (66-121): Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
// TypeError: (96-114): Type is not callable