Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix #492 - use ConvILTypeRefUnadjusted not ConvILTypeRef#510

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
latkin wants to merge1 commit intodotnet:fsharp4fromlatkin:fix-492

Conversation

@latkin
Copy link
Contributor

  • Bug numberRuntime error with SqlEntityConnection TP under VS 2015 RC and F# 3.1 #492
  • Customer scenario Runtime crash in user code (dynamic assembly load failure) due to bad codegen. This is a regression. Occurs when downtargeting to F# 3.1 and using any query expression against the SQL Entity type provider (or other type providers that use static linking in a similar way).
  • Fix description

Use correct API when encoding quoted assembly references.ConvILTypeRefUnadjusted properly handles the case where the reference is statically linked.ConvILTypeRef does not.

These two used to be a single API. They were split in640db00 and it was a simple oversight that the wrong one was wired up here.

  • Testing done
    We have private tests which cover these type providers, they were simply never run in a cross-version configuration. That's frustrating, as cross-version testing was automated recently withAutomated cross-targeting testing #446. Running those tests, the bug would have been found a month ago. With the fix, they all pass.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

@dsyme there is now only one direct use ofConvILTypeRef, below on line 978. Can you take a second look and confirm that this call is correct?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

There would certainly be no harm in adjusting that one for uniformity, but its harmless either way - the case is only used for the built-in primitive types like these:https://github.com/Microsoft/visualfsharp/blob/fsharp4/src/fsharp/FSharp.Core/prim-types-prelude.fsi#L73 as mentioned herehttps://github.com/Microsoft/visualfsharp/blob/275b832e9dd1a4bd64ed3accd218384b901be1d2/src/fsharp/tast.fs#L3681. I think this specific case is probably only used for nativeptr if at all.

@latkin
Copy link
ContributorAuthor

This guy has also been approved

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@latkin@dsyme@msftclas@MattGertz

[8]ページ先頭

©2009-2025 Movatter.jp