Cannot increment struct field in member function #27

Open
evanw opened this Issue Apr 20, 2013 · 0 comments

Comments

Projects
None yet
1 participant

evanw commented Apr 20, 2013

The compiler gives "cannot use . operator on pointer type"

struct Foo {
  int x;
  function foo() { this->x++; }
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment