Skip to content

Instantly share code, notes, and snippets.

@christineponyl
Created October 18, 2019 15:15
Show Gist options
  • Save christineponyl/061d51b5b09d813ef31fa3650d95cca7 to your computer and use it in GitHub Desktop.
Save christineponyl/061d51b5b09d813ef31fa3650d95cca7 to your computer and use it in GitHub Desktop.
trait SomeTrait
fun tag 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