mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Support "typedef"
This commit is contained in:
committed by
Christoffer Lerno
parent
b7e19b75d0
commit
df77b692d6
@@ -1,7 +1,7 @@
|
||||
|
||||
define Func = fn int(int);
|
||||
typedef Func = fn int(int);
|
||||
|
||||
define Func2 = fn int(Foo*, int);
|
||||
typedef Func2 = fn int(Foo*, int);
|
||||
|
||||
struct Foo
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
define Foo = int[0]; // #error: An array may not have zero
|
||||
typedef Foo = int[0]; // #error: An array may not have zero
|
||||
|
||||
struct Bar
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user