Incorrect handling when reporting fn with optional compile time type #2862

This commit is contained in:
Christoffer Lerno
2026-01-28 18:51:21 +01:00
parent a07660f957
commit d276d3767f
3 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
fn $typeof({})? foo() {} // #error: A function may not return an optional with a compile time type, only macros may do
fn int main()
{
return 0;
}