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

31 lines
1.5 KiB
Plaintext

error[4327]: Public state variable needs to specify overridden contracts `FuncB` and `FuncC`
╭▸ ROOT/tests/ui/overrides/diamond_public_vars.sol:LL:CC
│
LL │ uint public override foo;
╰╴ ━━━━━━━━━━━━━━━━━━━━━━━━━
error[4327]: Public state variable needs to specify overridden contracts `FuncD`
╭▸ ROOT/tests/ui/overrides/diamond_public_vars.sol:LL:CC
│
LL │ uint public override(FuncBase, FuncE) foo2;
╰╴ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
error[2353]: invalid contract specified in override list: `FuncBase`
╭▸ ROOT/tests/ui/overrides/diamond_public_vars.sol:LL:CC
│
LL │ uint public override(FuncBase, FuncE) foo2;
╰╴ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
error[6480]: derived contract must override function `x`
╭▸ ROOT/tests/ui/overrides/diamond_public_vars.sol:LL:CC
│
LL │ contract Bad3 is ImplVarA, ImplVarB {}
│ ━━━━
│
├ note: two or more base classes define function with same name and parameter types
├ note: defined in: `ImplBase`, `ImplVarA`
╰ help: since one of the bases defines a public state variable which cannot be overridden, change the inheritance layout or rename the functions
error: aborting due to 4 previous errors