Created
October 18, 2019 14:40
-
-
Save christineponyl/ceac6696aa54db03ca8c2d05a1748ed5 to your computer and use it in GitHub Desktop.
Shared via Pony Playground (https://playground.ponylang.io/?gist=ceac6696aa54db03ca8c2d05a1748ed5)
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 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