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

56 lines
2.7 KiB
Plaintext

error[9456]: overriding function is missing `override` specifier
╭▸ ROOT/tests/ui/overrides/multi_layered.sol:LL:CC
│
LL │ function foo() public view {}
│ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
╰╴
note: overridden function is here
╭▸ ROOT/tests/ui/overrides/multi_layered.sol:LL:CC
│
LL │ contract Base1 is IBase { function foo() public virtual view {} }
│ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
╰ help: add `override` to the function signature
error[9456]: overriding function is missing `override` specifier
╭▸ ROOT/tests/ui/overrides/multi_layered.sol:LL:CC
│
LL │ function foo() public view {}
│ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
╰╴
note: overridden function is here
╭▸ ROOT/tests/ui/overrides/multi_layered.sol:LL:CC
│
LL │ contract Base2 is IBase { function foo() public virtual view {} }
│ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
╰ help: add `override` to the function signature
error[4327]: Function needs to specify overridden contracts `IBase` and `Base1` and `Base2`
╭▸ ROOT/tests/ui/overrides/multi_layered.sol:LL:CC
│
LL │ function foo() public view {}
╰╴ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
error[4327]: Function needs to specify overridden contracts `IBase` and `Base2`
╭▸ ROOT/tests/ui/overrides/multi_layered.sol:LL:CC
│
LL │ function foo() public view override(Base1) {}
╰╴ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
error[4327]: Function needs to specify overridden contracts `Base2`
╭▸ ROOT/tests/ui/overrides/multi_layered.sol:LL:CC
│
LL │ function foo() public view override(IBase, Base1) {}
╰╴ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
error[6480]: derived contract must override function `h`
╭▸ ROOT/tests/ui/overrides/multi_layered.sol:LL:CC
│
LL │ contract Bad4 is UnresolvedA, UnresolvedB {}
│ ━━━━
│
├ note: two or more base classes define function with same name and parameter types
╰ note: defined in: `UnresolvedA`, `UnresolvedB`
error: aborting due to 6 previous errors