Skip to content

Failure getting expression for a provided method call #460

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

Closed
Jand42 opened this issue Nov 10, 2015 · 1 comment
Closed

Failure getting expression for a provided method call #460

Jand42 opened this issue Nov 10, 2015 · 1 comment

Comments

@Jand42
Copy link
Contributor

Jand42 commented Nov 10, 2015

I you have an erased type provider that generates a call to a method of an F# type, then try to get the expression from a checked project which uses this, there is an error "A call to '...' could not be resolved.

This is thrown by Microsoft.FSharp.Compiler.SourceCodeServices.FSharpExprConvert.ConvExprPrim. It seems that coming from the TP, the call is represented as a Tast.Expr.Op(TOp.ILCall ...) but the type containing the method has F# metadata, so it will not represented by a TILObjModelRepr case when imported.

I have a minimal test project at https://github.com/Jand42/FCS-TP-error
Failing using FSharp.Compiler.Service 1.4.2.1 and FSharp.TypeProviders.StarterPack 1.1.3.76

@dsyme dsyme added the bug label Nov 19, 2015
@dsyme
Copy link
Contributor

dsyme commented Dec 1, 2015

Thank you for putting together such a clear repro for this.

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

No branches or pull requests

2 participants