More tests.

This commit is contained in:
chriseth 2019-12-09 16:14:22 +01:00
parent 086b90fc07
commit 6d2e59cc80
2 changed files with 24 additions and 0 deletions

View File

@ -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 {}

View File

@ -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.