jorts/examples/custom-types.jt

12 lines
162 B
Plaintext

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