- 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

@@ -8,10 +8,7 @@ Example:
module sample::m;
import std::io;
fault MathError
{
DIVISION_BY_ZERO
}
faultdef DIVISION_BY_ZERO;
fn double? divide(int a, int b)
{
@@ -87,7 +84,7 @@ macro @check(#condition, String format = "", args...)
@param error_expected : `expected error of function execution`
@require runtime::test_context != null : "Only allowed in @test functions"
*>
macro @error(#funcresult, anyfault error_expected)
macro @error(#funcresult, fault error_expected)
{
if (catch err = #funcresult)
{