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:
@@ -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;
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user