mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- In some cases, a type would not get implicitly converted to a typeid #2764.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
module testing_branch;
|
||||
faultdef FOO;
|
||||
|
||||
macro usz? problemz(val) => val >= 5 ? usz : FOO~; // #error: Implicitly casting 'typeid' to 'usz'
|
||||
macro usz? problemz2(val) => val >= 5 ? $typefrom("usz") : FOO~; // #error: Implicitly casting 'typeid' to 'usz'
|
||||
|
||||
fn int main()
|
||||
{
|
||||
for (usz i = 0; i < 10; i++)
|
||||
{
|
||||
problemz(i)!!;
|
||||
problemz2(i)!!;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user