$typeof(<type>) returns typeinfo, causing errors #2795

This commit is contained in:
Christoffer Lerno
2026-01-22 20:04:09 +01:00
parent 32675161c4
commit bf50178eb3
4 changed files with 10 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
fn int main()
{
int x;
double df2 = ($typeof(double))(x); // #error: You cannot cast 'int' to 'typeid'
return 0;
}