12 lines
162 B
Text
12 lines
162 B
Text
|
import io
|
||
|
|
||
|
// you can create your own types with 'type'
|
||
|
type T = int
|
||
|
|
||
|
fn main () {
|
||
|
T a = 2
|
||
|
|
||
|
// since T is int, io.puts with an int works
|
||
|
io.puts(a)
|
||
|
}
|