mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Allow inference across && #2172.
This commit is contained in:
@@ -11,13 +11,15 @@ extern fn int printf(char *c, ...);
|
||||
fn void foo()
|
||||
{
|
||||
int z = 2;
|
||||
Foo*? w = &&{ z, 0 }; // #error: An untyped list can only have constant elements
|
||||
ushort* y = &&4;
|
||||
Foo*? w2 = &&{ z, 0 };
|
||||
void*? w = &&{ z, 0 }; // #error: An untyped list can only have constant elements
|
||||
}
|
||||
|
||||
fn void foo2()
|
||||
{
|
||||
int? z = 2;
|
||||
Foo*? w = &&{ z, 0 }; // #error: An untyped list can only have constant elements
|
||||
void*? w = &&{ z, 0 }; // #error: An untyped list can only have constant elements
|
||||
}
|
||||
|
||||
fn void test()
|
||||
|
||||
Reference in New Issue
Block a user