aboutsummaryrefslogtreecommitdiff
path: root/tests/actor/reject/explicit_this.zc
blob: caa30d0d4ff9aea05f66134d43f43309f11ee08b (plain) (blame)
1
2
3
4
namespace;
include rt, actor;
actor Counter { int value; fn add(Counter* this, int n) { this.value += n; return this.value; } }
fn main() { Counter c; return c.add(1); }