jorts/examples/custom-types.jt

12 lines
162 B
Text
Raw Normal View History

2019-03-08 21:30:30 +00:00
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)
}