- 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:
Christoffer Lerno
2025-03-15 15:21:55 +01:00
committed by Christoffer Lerno
parent fc5615a7a1
commit 5c77c9a754
221 changed files with 649 additions and 684 deletions

View File

@@ -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);

View File

@@ -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";