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

[CS2] Cannot use the object "shorthand props" with the "key name props" together #4449

Closed
YamiOdymel opened this issue Feb 22, 2017 · 1 comment
Labels

Comments

@YamiOdymel
Copy link

Not sure if this is a bug or unimplemented feature.

[email protected]

result =
        success : true
        code    : "0000"
        data

error

[stdin]:13:25: error: unexpected newline
        code    : "0000"
                        ^

but this works

result =
        success : true
        code    : "0000"
        data    : data
result = {
    success: true,
    code: "0000",
    data: data
  };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants