Skip to content

Instantly share code, notes, and snippets.

@SeanTAllen
Created August 15, 2016 12:45
Show Gist options
  • Save SeanTAllen/ba0ce66d6396ed9c2e5b2538c1297904 to your computer and use it in GitHub Desktop.
Save SeanTAllen/ba0ce66d6396ed9c2e5b2538c1297904 to your computer and use it in GitHub Desktop.
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