Using an optional type as generic parameter was not properly caught #2799

This commit is contained in:
Christoffer Lerno
2026-01-22 13:34:16 +01:00
parent cef48482f1
commit b1fea45cd1
3 changed files with 19 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
import std;
alias Aa = List{Path?}; // #error: The generic type can never be an optional, please use only non-optional types
fn int main()
{
return 0;
}