Skip to content

Instantly share code, notes, and snippets.

@PaperclipBadger
Last active June 24, 2016 16:52
Show Gist options
  • Save PaperclipBadger/28a4bda56934a392cf23587169153235 to your computer and use it in GitHub Desktop.
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
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