Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get,set if a objet #1254

Closed
yty9898 opened this issue May 16, 2016 · 1 comment
Closed

get,set if a objet #1254

yty9898 opened this issue May 16, 2016 · 1 comment

Comments

@yty9898
Copy link

yty9898 commented May 16, 2016

namespace Ext;

class Opt
{
      public xx {set,get};
}


class Test
{
    public option;
    public function test()
    {
          let this->option = new Opt();
          let this->option->xx = "a"; //Syntax error

          //but
          var successopt;
          let successopt = new Opt();
          let successopt->xx = "a"; //this is success         

    }
}
@steffengy
Copy link
Contributor

duplicate of #573

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants