Add interface support to check (#3474)

Largely copied from the `class` code
This commit is contained in:
josh11b authored and GitHub committed 2023-12-08 17:13:49 +00:00
1 parent 2705a32b92
commit 3b0923c81d
21 files changed
+677 -18

No files matched your search

+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");
}