solidity/test/libsolidity/syntaxTests/functionCalls/new_library.sol
2020-10-16 18:25:08 +02:00

9 lines
141 B
Solidity

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