28 lines
1.9 KiB
Plaintext
28 lines
1.9 KiB
Plaintext
error[4520]: duplicate contract found in override list of `mustOverride`
|
|
╭▸ ROOT/tests/ui/overrides/edge_cases.sol:LL:CC
|
|
│
|
|
LL │ function mustOverride() public override(Base, Base2, Base) returns (uint) { return 900; }
|
|
╰╴ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
|
|
error[4593]: cannot override implemented function with unimplemented function
|
|
╭▸ ROOT/tests/ui/overrides/edge_cases.sol:LL:CC
|
|
│
|
|
LL │ function implemented() public override virtual returns (uint);
|
|
│ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
╰╴
|
|
note: overridden function is here
|
|
╭▸ ROOT/tests/ui/overrides/edge_cases.sol:LL:CC
|
|
│
|
|
LL │ function implemented() public virtual returns (uint) { return 2; }
|
|
│ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
╰ help: provide an implementation for the overriding function
|
|
|
|
error[2353]: invalid contract specified in override list: `Base3`
|
|
╭▸ ROOT/tests/ui/overrides/edge_cases.sol:LL:CC
|
|
│
|
|
LL │ function mustOverride() public override(Base, Base3) returns (uint) { return 800; }
|
|
╰╴ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
|
|
error: aborting due to 3 previous errors
|
|
|