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

Show better error when using ref cell instead of not #1275

Merged
merged 1 commit into from
Jun 24, 2016

Conversation

forki
Copy link
Contributor

@forki forki commented Jun 22, 2016

image

@dsyme
Copy link
Contributor

dsyme commented Jun 22, 2016

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" ->
Copy link
Contributor

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.

Copy link
Contributor Author

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"

@forki forki force-pushed the refcell branch 3 times, most recently from 103a6d6 to 7eb2b28 Compare June 22, 2016 12:14
@forki forki changed the title WIP Show better error when using ref cell instead of not Show better error when using ref cell instead of not Jun 22, 2016
@forki
Copy link
Contributor Author

forki commented Jun 22, 2016

ready for inital review

@KevinRansom
Copy link
Member

Looks good to me.

@forki Thanks for taking care of this.

Kevin

@KevinRansom KevinRansom merged commit deea6a5 into dotnet:master Jun 24, 2016
@forki forki deleted the refcell branch June 24, 2016 14:59
@cartermp
Copy link
Contributor

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants