Closed Jand42 closed 4 years ago
cc @thinkbeforecoding
Previously, the handling of method parameters used t.MakeGeneric which returns such generic that doesn't work then for generation.. I may have broken your usecase in the process. A repro would ease the fix
I tested your sample with this fix from #335 and it now seems to work correctly 👍
Description
The F# compiler can give a
Type mismatch when building 'expr'
error on two types which should be the same during the running of a TP. Found when building https://github.com/dotnet-websharper/ui and this is a breaking change introduced by #332, works with the previous state (e9d2c93).Example of error:
The WebSharper.UI.Templating type provider uses expression splicing extensively, probably the issue is related to that, I am experimenting to find a minimal failing test case and will update this description if found.
Repro steps
build WS-Update
build WS-BuildRelease
Expected behavior
WebSharper.UI.Templating.Tests
project should build as before, now fails on erased TP use.Actual behavior
Build errors.
Known workarounds
Use earlier state of FSharp.TypeProviders.SDK.
Related information