mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Change distinct -> typedef.
- Order of attribute declaration is changed for `alias`. - Added `LANGUAGE_DEV_VERSION` env constant. - Rename `anyfault` -> `fault`. - Changed `fault` -> `faultdef`. - Added `attrdef` instead of `alias` for attribute aliases.
This commit is contained in:
committed by
Christoffer Lerno
parent
fc5615a7a1
commit
5c77c9a754
@@ -22,7 +22,7 @@ macro check_type($Type)
|
||||
|
||||
enum Blurb { FOO }
|
||||
|
||||
distinct Bdd = Abc;
|
||||
typedef Bdd = Abc;
|
||||
fn void main()
|
||||
{
|
||||
var $i = (int[4]) { 1, 2, 3, 4 };
|
||||
@@ -30,7 +30,7 @@ fn void main()
|
||||
var $c = (any[4]) {};
|
||||
check_type(int);
|
||||
check_type(Abc);
|
||||
check_type(anyfault);
|
||||
check_type(fault);
|
||||
check_type(Blurb);
|
||||
check_type(int*);
|
||||
check_type(bool);
|
||||
|
||||
@@ -2,9 +2,7 @@
|
||||
module test;
|
||||
import std;
|
||||
|
||||
alias @TaggedAttr(value) = {
|
||||
@tag("foo", (ValueHere[*]){ value })
|
||||
};
|
||||
attrdef @TaggedAttr(value) = @tag("foo", (ValueHere[*]){ value });
|
||||
|
||||
const FOO_STR = "foo";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user