Override(path) syntax

This commit is contained in:
2026-06-09 12:30:22 +02:00
parent 20762a01bd
commit 0347892056
4 changed files with 21 additions and 8 deletions
+1 -1
View File
@@ -325,7 +325,7 @@ trait_decl = {
// FUNCTIONS
// ======================================================
override_kw = { "override" }
override_kw = { "override" ~ ("(" ~ expr_path ~ ")")? }
function_decl = {
visibility? ~ override_kw? ~ "fn" ~ identifier ~ generics_decl? ~ "(" ~ method_args ~ ")" ~ type_expr? ~ (block | semicolon)