-
Notifications
You must be signed in to change notification settings - Fork 803
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
Show better error when using ref cell instead of not #1275
Conversation
forki
commented
Jun 22, 2016
0764adc
to
94e054a
Compare
Well that looks good :) |
| ContextInfo.TupleInRecordFields -> | ||
os.Append(ErrorFromAddingTypeEquation1E().Format t2 t1 tpcs) |> ignore | ||
os.Append(System.Environment.NewLine + FSComp.SR.commaInsteadOfSemicolonInRecord()) |> ignore | ||
| _ when t2 = "bool" && t1.EndsWith " ref" -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A bit of a hacky way to get this condition, but I suppose it's good enough :) It's hard to imagine it no working.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah tried a couple of things, but this was still the "best"
103a6d6
to
7eb2b28
Compare
ready for inital review |
Looks good to me. @forki Thanks for taking care of this. Kevin |
👍 |