mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
More tests.
This commit is contained in:
parent
086b90fc07
commit
6d2e59cc80
@ -0,0 +1,17 @@
|
||||
contract I {
|
||||
modifier f() { _; }
|
||||
}
|
||||
contract J {
|
||||
modifier f() { _; }
|
||||
}
|
||||
contract IJ is I, J {
|
||||
modifier f() virtual override (I, J) { _; }
|
||||
}
|
||||
contract A is IJ
|
||||
{
|
||||
modifier f() override { _; }
|
||||
}
|
||||
contract B is IJ
|
||||
{
|
||||
}
|
||||
contract C is A, B {}
|
@ -0,0 +1,7 @@
|
||||
abstract contract A {
|
||||
}
|
||||
abstract contract X is A {
|
||||
modifier f() override { _; }
|
||||
}
|
||||
// ----
|
||||
// TypeError: (65-73): Modifier has override specified but does not override anything.
|
Loading…
Reference in New Issue
Block a user