jorts/examples/custom-types.jt
2019-03-08 18:30:30 -03:00

11 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)
}