-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hello
I do not know if this is related to the compiler itself, but I post here just in case.
I try to use a UOF based on string, if I try to use the new "| null" feature it fails:
Microsoft (R) F# Interactive version 12.9.100.0 for F# 9.0
#r "nuget: FSharp.UMX";;
open FSharp.UMX;;
[<Measure>] type customerId;;
type customer = string<customerId>;;
type customerOrNull = customer | null;;
Fails with
"A generic construct requires that the type 'customer' have reference semantics, but it does not, i.e. it is a struct"
Could someone confirm if this is related to the library or the compiler?
Thanks in advance!
Metadata
Metadata
Assignees
Labels
No labels