Check for use of modifiers in invalid contexts

This commit is contained in:
Mathias Baumann
2019-10-23 12:36:20 +02:00
parent ad7cf42aad
commit 8c5d1da5a5
3 changed files with 27 additions and 1 deletions
@@ -0,0 +1,9 @@
contract test {
modifier mod() { _; }
function f() public {
mod ;
}
}
// ----
// TypeError: (77-80): Modifier can only be referenced in function headers.