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

Type definition can't have spaces #19

Closed
manveru opened this issue May 31, 2018 · 2 comments
Closed

Type definition can't have spaces #19

manveru opened this issue May 31, 2018 · 2 comments
Labels
good first issue Good for newcomers

Comments

@manveru
Copy link
Contributor

manveru commented May 31, 2018

Syntax Error

A type with parameters must contain at least one parameter.

I was looking for the type or type parameter but found a space instead.

Here is the relevant code snippet:

store Counter.Store {
  property counter : Number = 0
  property trying : Array(  String) = []

  fun increment : Void {
    next { state | counter = counter + 1 }
  }

2018-05-31-215343_622x443_scrot

@Sija
Copy link
Member

Sija commented Jun 1, 2018

IMO that's correct behavior.

@gdotdesign
Copy link
Member

@Sija I understand you concern, but as long as the formatter formats types without spaces it's better UX allowing spaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Development

No branches or pull requests

3 participants