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

@@ -6,8 +6,8 @@ import std::collections::map;
struct Foo (Printable) { int x; void* bar; }
def IntFooMap = HashMap { int, Foo };
def IntDoubleMap = HashMap { int, double };
alias IntFooMap = HashMap { int, Foo };
alias IntDoubleMap = HashMap { int, double };
fn String Foo.to_new_string(Foo* foo, Allocator allocator = allocator::heap()) @dynamic
{

View File

@@ -6,8 +6,8 @@ import std::collections::map;
struct Foo (Printable) { int x; void* bar; }
def IntFooMap = HashMap { int, Foo };
def IntDoubleMap = HashMap { int, double };
alias IntFooMap = HashMap { int, Foo };
alias IntDoubleMap = HashMap { int, double };
fn String Foo.to_new_string(Foo* foo, Allocator allocator = allocator::heap()) @dynamic
{

View File

@@ -4,7 +4,7 @@ import std::io;
import std::math;
import std::collections::priorityqueue;
def FooPriorityQueue = PriorityQueueMax{Foo};
alias FooPriorityQueue = PriorityQueueMax{Foo};
fn void main()
{