clawchain/solar/tests/ui/overrides/variables_ext.stderr

28 lines
1.5 KiB
Plaintext

error[5225]: public state variable can only override external function
╭▸ ROOT/tests/ui/overrides/variables_ext.sol:LL:CC
│
LL │ uint public override getValue;
│ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
╰╴
note: overridden function is here
╭▸ ROOT/tests/ui/overrides/variables_ext.sol:LL:CC
│
LL │ function getValue() public virtual returns (uint) { return 1; }
│ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
╰ note: base function has `public` visibility
error[4822]: overriding public state variable has different return types
╭▸ ROOT/tests/ui/overrides/variables_ext.sol:LL:CC
│
LL │ uint public override getValue;
│ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
╰╴
note: overridden function is here
╭▸ ROOT/tests/ui/overrides/variables_ext.sol:LL:CC
│
LL │ function getValue() external virtual returns (BaseWithExternalFuncWrongReturn) {}
╰╴ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
error: aborting due to 2 previous errors