-
Notifications
You must be signed in to change notification settings - Fork 832
Operator syntax tree two #12989
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
Operator syntax tree two #12989
Conversation
|
module WithSignature
val (|A|_|) : int -> string optionimplementation: module WithSignature
let (|A|_|) = function | 1 -> Some "1" | _ -> Noneerror: @auduchinok any ideas by any chance? I'm out of ideas. The fsharp/src/fsharp/SignatureConformance.fs Lines 274 to 275 in e7289c1
but I'm unsure where the implVal.ValReprInfo is wrongly created.
|
This is very great, congrats!
I hope I'll be able to look into it tomorrow and will let you know |
9f4516e to
6dc2593
Compare
8a5b606 to
84545ec
Compare
|
I'm currently in a dilemma here: type MyType() =
static member (|
AA
|) = 2
static member (|
BB|_
|) = Some 3In the current compiler this works out fine, but given there is more information I'm not (rightly) bumping into fsharp/src/fsharp/CheckExpressions.fs Lines 10475 to 10487 in 34fb4ca
Where Concretely I'm hitting this error in: Lines 1338 to 1351 in 34fb4ca
@dsyme and others, any thoughts? |
…g syntax tree changes.
…capture the ident to check for duplicates.
…erator when used in instance member binding.
0065752 to
9ea0b09
Compare
let f as Unit1 = 4
This reverts commit 04b1708.
|
Closing in favour of #13057. |
Superseded #12980.
Some more nodes were introduced to better capture operators, active patterns and partial active patterns.
Very much still a work in progress. Feedback would be welcome if there are volunteers 😊.