Add interface support to check (#3474)

Largely copied from the `class` code
This commit is contained in:
josh11b
2023-12-08 17:13:49 +00:00
committed by GitHub
parent 2705a32b92
commit 3b0923c81d
21 changed files with 677 additions and 18 deletions
+2
View File
@@ -100,6 +100,8 @@ static auto BuildFunctionDecl(Context& context, bool is_definition)
"method modifier");
}
if (!!(modifiers & KeywordModifierSet::Interface)) {
// TODO: Once we are saving the modifiers for a function, add check that
// the function may only be defined if it is marked `default` or `final`.
context.TODO(context.decl_state_stack().innermost().saw_decl_modifier,
"interface modifier");
}