mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
First 0.7 update, removing all deprecated features.
This commit is contained in:
committed by
Christoffer Lerno
parent
cff6697818
commit
2a895ec7be
@@ -1,17 +1,17 @@
|
||||
module test;
|
||||
|
||||
def Bob = Test(<any>);
|
||||
def Bob = Test{any};
|
||||
fn void Bob.crash(&self) {}
|
||||
|
||||
fn int main()
|
||||
{
|
||||
Test(<any>) foo;
|
||||
Test{any} foo;
|
||||
return 0;
|
||||
}
|
||||
<*
|
||||
@require $defined(String.hash)
|
||||
*>
|
||||
module test::generic(<Some_Type>);
|
||||
module test::generic{Some_Type};
|
||||
|
||||
enum Test
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
module compiler_c3;
|
||||
import std::collections::list;
|
||||
|
||||
def IntArray = List(<int>);
|
||||
def IntArray = List{int};
|
||||
|
||||
extern fn void printf(char*, ...);
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
module test;
|
||||
import std::io, std::time, std::math, std::collections;
|
||||
|
||||
List(<long>) stones;
|
||||
List{long} stones;
|
||||
|
||||
struct Foo
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user