Skip to content

Instantly share code, notes, and snippets.

@christineponyl
Created October 18, 2019 14:26
Show Gist options
  • Save christineponyl/6f1868c2c7e6917be17cd437a0c34ca3 to your computer and use it in GitHub Desktop.
Save christineponyl/6f1868c2c7e6917be17cd437a0c34ca3 to your computer and use it in GitHub Desktop.
trait SomeTrait
fun getVal() : U32 =>
2
class SomeClass
class Some is SomeTrait
// works, if ` = SomeClass` is uncommented:
embed eClass : SomeClass // = SomeClass
new create( env' : Env) =>
// // works, if line below is uncommented:
// eClass = SomeClass
getVal()
// doesnt work, if line below is uncommented:
eClass = SomeClass
actor Main
new create( e' : Env) =>
e'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment