2021-12-13 13:53:40 +00:00
|
|
|
// SPDX-License-Identifier: UNLICENSED
|
|
|
|
pragma solidity >=0.8.0;
|
|
|
|
|
|
|
|
contract C
|
|
|
|
{
|
|
|
|
function makeSomeError() public pure returns (uint res)
|
|
|
|
{
|
|
|
|
uint x = "hi";
|
2022-03-01 17:56:17 +00:00
|
|
|
// ^^^^^^^^^^^^^ @conversionError
|
2021-12-13 13:53:40 +00:00
|
|
|
return;
|
2022-03-01 17:56:17 +00:00
|
|
|
// ^^^^^^^ @argumentsRequired
|
2021-12-13 13:53:40 +00:00
|
|
|
res = 2;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
contract D
|
|
|
|
{
|
|
|
|
function main() public payable returns (uint)
|
|
|
|
{
|
|
|
|
C c = new C();
|
|
|
|
return c.makeSomeError(2, 3);
|
2022-03-01 17:56:17 +00:00
|
|
|
// ^^^^^^^^^^^^^^^^^^^^^ @wrongArgumentsCount
|
2021-12-13 13:53:40 +00:00
|
|
|
}
|
|
|
|
}
|
2022-03-15 17:52:59 +00:00
|
|
|
// ----
|
|
|
|
// publish_diagnostics_2: @conversionError 9574 @argumentsRequired 6777 @wrongArgumentsCount 6160
|