solidity/test/libsolidity/lsp/publish_diagnostics_1.sol
2021-12-16 17:52:49 +01:00

19 lines
300 B
Solidity

// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.0;
contract MyContract
{
constructor()
{
uint unused; // [Warning 2072] Unused local variable.
}
}
contract D
{
function main() public payable returns (uint)
{
MyContract c = new MyContract();
}
}