Please provide a succinct description of the issue.
When using SDK 5.0.300 and one uses an identifier in a type parameter one get a FS3045 compilation error.
It works on SDK 5.0.203
Provide the steps required to reproduce the problem:
Use SDK 5.0.300
Compile the code below, also see FS3045 error reproduction repro
open System
open FSharp.Data
type Sample = XmlProvider< Schema= " Sample.xsd" ,
ResolutionFolder=__ SOURCE_ DIRECTORY__>
Expected behavior
It should work as it does in SDK 5.0.203.
Actual behavior
A FS3045 compilation error.
Known workarounds
Use SDK 5.0.203
Put the identifier into a [<Literal>] value.
[<Literal>]
let refDir = __ SOURCE_ DIRECTORY__
type Sample = XmlProvider< Schema= " Sample.xsd" ,
ResolutionFolder= refDir>
Provide any related information (optional):
Operating system: Windows 10
.NET Runtime kind (.NET Core, .NET Framework, Mono): dotnet-sdk 5.0.300
Editing Tools (e.g. Visual Studio Version, Visual Studio): Visual Studio Code (probably not related)
👍 React with 👍 2adelarsq and CaptnCodr