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

Enumeration keyword is not recognized #51

Closed
tscheburaschka opened this issue Apr 12, 2019 · 1 comment
Closed

Enumeration keyword is not recognized #51

tscheburaschka opened this issue Apr 12, 2019 · 1 comment

Comments

@tscheburaschka
Copy link

The following example of an enumeration class is not recognised and leads to falsely reporting of syntax errors.

classdef TimeUnit < double & Unit
  
  enumeration
    millisecond    (1/1000)
    second         (1)
    minute         (60)
    hour           (60*60)
    day            (60*60*24)
    week           (60*60*24*7)
  end
  
  methods
    function d = asDuration( self)
      d = seconds( self);
    end
  end
  
end
@kornilova203 kornilova203 added this to the v0.6 milestone Apr 13, 2019
kornilova203 added a commit that referenced this issue Jul 7, 2019
@kornilova203
Copy link
Owner

Fixed by dbf4907

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

No branches or pull requests

2 participants