Created
August 15, 2016 12:45
-
-
Save SeanTAllen/ba0ce66d6396ed9c2e5b2538c1297904 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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