- $typeof untyped list crashes when trying to create typeid from it. #2779

This commit is contained in:
Christoffer Lerno
2026-01-20 17:54:05 +01:00
parent d7bfddf35e
commit 888657cc97
3 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
fn void a()
{
typeid a = $typeof({}); // #error: You cannot take the typeid of a compile time type
var t @safeinfer = mem::new_array($typeof({}), 1); // #error: 'untyped_list' does not have a property or method 'alignof'
}