mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix typeid on compile time types.
This commit is contained in:
5
test/test_suite/compile_time/typeid_ct.c3
Normal file
5
test/test_suite/compile_time/typeid_ct.c3
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user