mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Rename def to alias.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user