Type Checker: Disallow `virtual` for modifiers in libraries.

This commit is contained in:
Harikrishnan Mulackal
2020-09-07 11:17:38 +02:00
parent f964966090
commit acec8f271d
3 changed files with 17 additions and 0 deletions
@@ -0,0 +1,7 @@
library test {
modifier m virtual;
function f() m public {
}
}
// ----
// TypeError 3275: (19-38): Modifiers in a library cannot be virtual.