- @test/@benchmark on module would attach to interface and regular methods.

This commit is contained in:
Christoffer Lerno
2025-08-28 00:28:32 +02:00
parent 239d249f01
commit 90d3f429aa
5 changed files with 26 additions and 3 deletions

View File

@@ -954,7 +954,6 @@ static bool sema_analyse_interface(SemaContext *context, Decl *decl, bool *erase
SEMA_ERROR(type_infoptr(method->func_decl.type_parent), "Interfaces should not be declared as methods.");
return decl_poison(method);
}
method->func_decl.attr_interface_method = true;
bool erase = false;
// Insert the first parameter, which is the implicit `void*`