Rename def to alias.

This commit is contained in:
Christoffer Lerno
2025-03-13 11:22:27 +01:00
parent ae76839347
commit 8b49e6c14d
193 changed files with 790 additions and 776 deletions

View File

@@ -2,7 +2,7 @@
module test;
import std::collections::map;
def Foo = HashMap{String, HashMap{String, String}};
alias Foo = HashMap{String, HashMap{String, String}};
macro test()
{
HashMap{String, String} map0;

View File

@@ -1,7 +1,7 @@
def Func = fn int(int);
alias Func = fn int(int);
def Func2 = fn int(Foo*, int);
alias Func2 = fn int(Foo*, int);
struct Foo
{

View File

@@ -2,7 +2,7 @@ struct Foo {
void bar; // #error: Members cannot be of
}
def Void = void;
alias Void = void;
struct Foo2 {
Void bar; // #error: Members cannot be of
}

View File

@@ -1,4 +1,4 @@
def Foo = int[0]; // #error: An array may not have zero
alias Foo = int[0]; // #error: An array may not have zero
struct Bar
{