Last active
June 24, 2016 16:52
-
-
Save PaperclipBadger/28a4bda56934a392cf23587169153235 to your computer and use it in GitHub Desktop.
test.pony:13:20: ref method is not a subtype of box method
This file contains 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
actor Main | |
new create(env: Env) => | |
Bar() | |
primitive Foo | |
fun apply(f: {()}) => | |
f() | |
class Bar | |
var i: U8 = 0 | |
fun ref apply() => | |
Foo(this~modify()) | |
fun ref modify() => | |
i = i + 1 | |
None |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment