Compile time switch over type would not correctly compare function pointer types.

This commit is contained in:
Christoffer Lerno
2025-09-16 14:10:23 +02:00
parent 06e10bb69f
commit c71444e7a0
4 changed files with 98 additions and 1 deletions

View File

@@ -108,7 +108,7 @@ macro anycast(any v, $Type) @builtin
return ($Type*)v.ptr;
}
macro bool @assignable_to(#foo, $Type) @const @builtin @deprecated("use '$define($Type x = #foo)'") => $defined(*&&($Type){} = #foo);
macro bool @assignable_to(#foo, $Type) @const @builtin @deprecated("use '$defined($Type x = #foo)'") => $defined(*&&($Type){} = #foo);
macro @addr(#val) @builtin
{