Files
c3c/test/test_suite/define/common.c3
Christoffer Lerno 3e54d13b62 Prefer def
2023-06-02 20:08:45 +02:00

18 lines
887 B
C

module foo;
// def <name> = <name>
def standard_foo = __stdin;
def someFunctionIntBool = someFunction<int, bool>;
def FooInt = Foo<int>;
def A_CONST_INT = A_CONST<int>;
def standard_foo<int> = ofke; // #error: Expected '='
def fn foo = fef; // #error: A type, variable, constant or attribute name was expected here
def feokfe = fn void(int); // #error: Expected a function or variable name here
def AOFKE = ofek; // #error: Expected a constant name here
def okfoe = OFKEOK; // #error: Expected a function or variable name here
def Helo = helo; // #error: A type name was expected here
def Helo = OFKE; // #error: A type name was expected here
def helo = Helo; // #error: A type alias must start with an uppercase letter and contain at least one lower case letter.
def HELO = Helo; // #error: A type alias must start with an uppercase letter and contain at least one lower case letter.