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

Over-enthusiastic removal of parentheses #249

Closed
SteveGilham opened this issue May 7, 2018 · 2 comments
Closed

Over-enthusiastic removal of parentheses #249

SteveGilham opened this issue May 7, 2018 · 2 comments

Comments

@SteveGilham
Copy link

Before

match i.Operand with
                            | :? (Instruction[]) -> true
                            | _ -> false

After

match i.Operand with
                            | :? Instruction [] -> true
                            | _ -> false

error FS0010: Unexpected symbol'[' in pattern matching. Expected '->' or other token.

@SteveGilham
Copy link
Author

SteveGilham commented May 7, 2018

Also in cast expression

i.Operand :?> (Instruction [])

becoming

i.Operand :?> Instruction []

with the same compiler error.

@jindraivanek
Copy link
Contributor

First case fixed by #317.

Wasn't able to reproduce second case, for example ([] :> obj) :?> int seq is valid code.

@SteveGilham, if you still see this as error, please post self-contained snippet for this case.

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