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

22 lines
347 B
Solidity

// SPDX-License-Identifier: UNLICENSED
pragma solidity >=0.8.0;
contract C
{
function makeSomeError() public pure returns (uint res)
{
uint x = "hi";
return;
res = 2;
}
}
contract D
{
function main() public payable returns (uint)
{
C c = new C();
return c.makeSomeError(2, 3);
}
}