Skip to content

Instantly share code, notes, and snippets.

@SeanTAllen
Created August 15, 2016 12:45
actor Main
new create(env: Env) => None
trait MyTrait
new create()
fun test(): MyTrait
class Foo is MyTrait
new create() => None
fun test(): Foo => Foo
class GenericTest[T: MyTrait ref]
fun test() =>
let a = Array[MyTrait]
a.push(T.create().test())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment