Fix typeid on compile time types.

This commit is contained in:
Christoffer Lerno
2025-07-01 00:27:17 +02:00
parent ba11511c69
commit 4502a9286c
2 changed files with 26 additions and 6 deletions

View File

@@ -0,0 +1,5 @@
fn void main()
{
typeid t = $typeof({1, "hts"}).typeid; // #error: cannot take the typeid
$typeof({1, "hts"}).nameof; // #error: does not have a property or method
}