aboutsummaryrefslogtreecommitdiffstats
path: root/test/libsolidity/syntaxTests/nameAndTypeResolution/462_callable_crash.sol
blob: 94e81de6052162559345806be327c4f5fb2e54e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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