Skip to content

Instantly share code, notes, and snippets.

@christineponyl
Created October 18, 2019 14:40
Show Gist options
  • Save christineponyl/ceac6696aa54db03ca8c2d05a1748ed5 to your computer and use it in GitHub Desktop.
Save christineponyl/ceac6696aa54db03ca8c2d05a1748ed5 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