solidity/test/libsolidity/syntaxTests/functionCalls/new_library.sol
2022-04-01 23:41:18 -05:00

9 lines
145 B
Solidity

library L {}
contract C {
function f() public pure {
new L();
}
}
// ----
// TypeError 1130: (63-64='L'): Invalid use of a library name.