solidity/test/libsolidity/syntaxTests/memberLookup/constructor_as_potential_library_member.sol

5 lines
232 B
Solidity

library L{ constructor() { L.x; } }
// ----
// TypeError 7634: (11-33): Constructor cannot be defined in libraries.
// TypeError 9582: (27-30): Member "x" not found or not visible after argument-dependent lookup in type(library L).