You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 31, 2021. It is now read-only.
type A =
abstract member M : int -> (int -> unit)
abstract member M : float -> int
the parenthesis around (int -> unit) are actually important, because after formatting you get
type A =
abstract M : int -> int -> unit
abstract M : float -> int
Which results in a compiler error (FS0439). (In fact you first get weird compiler errors in the implementations). Can I somehow disable this as a workaround?
The text was updated successfully, but these errors were encountered:
@matthid My apologies for answering way too late (Well, it has been more than a year).
I did multiple tries to fix this bug in the past but failed. At one point, I believed that the AST lacked relevant information to preserve parentheses. I figured out a non-intrusive way to fix the bug today.
No need to be sorry. I'm glad this will be fixed now 👍
I remember this issue was one of the blockers for me to use "Format Code on Save" with F# (which is a good way to find such bugs apparently). So maybe with 2.1.0 its time to try again :)
When you have code like:
the parenthesis around (int -> unit) are actually important, because after formatting you get
Which results in a compiler error (FS0439). (In fact you first get weird compiler errors in the implementations). Can I somehow disable this as a workaround?
The text was updated successfully, but these errors were encountered: