ref: 82eecd5a321aa3c619437a21997aa73c33c31d3c
dir: /test/compoundimpl.myr/
use std
trait frobable @a =
frob : (val : @a -> void)
;;
impl frobable int# =
frob = {val
std.put("intptr,")
}
;;
impl frobable char# =
frob = {val
std.put("charptr\n")
}
;;
generic foo = {x : @a :: frobable @a
frob(x)
}
const main = {
var a = (123 : int)
var b = 'c'
foo(&a)
foo(&b)
}