1
0
dust/examples/type_inference.ds

4 lines
82 B
Plaintext

foo = fn |T| (x: T) -> T { x }
bar: str = foo::(str)::("hi")
baz: str = foo("hi")