...
This commit is contained in:
@@ -1,6 +1,25 @@
|
||||
module main
|
||||
|
||||
extern func puts(text: ^u8)
|
||||
|
||||
export func print(text: string) {
|
||||
puts(text.ptr)
|
||||
}
|
||||
|
||||
enum Message {
|
||||
Tell: string
|
||||
}
|
||||
|
||||
func main(): i32 {
|
||||
core::print("Your mom")
|
||||
let x = "test"
|
||||
|
||||
let y = {
|
||||
abc = x
|
||||
}
|
||||
|
||||
let a: Message = enum Message::Tell x
|
||||
|
||||
core::print(x)
|
||||
|
||||
return 0
|
||||
}
|
||||
Reference in New Issue
Block a user