Created
October 18, 2019 15:15
-
-
Save christineponyl/061d51b5b09d813ef31fa3650d95cca7 to your computer and use it in GitHub Desktop.
Shared via Pony Playground (https://playground.ponylang.io/?gist=061d51b5b09d813ef31fa3650d95cca7)
This file contains hidden or 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
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