Skip to content

Commit f9157d1

Browse files
authored
Update BasicProvider.Provider.fs
1 parent 5c8fef9 commit f9157d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/BasicProvider.DesignTime/BasicProvider.Provider.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ namespace ProviderImplementation
33

44
open ProviderImplementation.ProvidedTypes
55
open FSharp.Quotations
6+
open FSharp.Quotations.Patterns
67
open FSharp.Core.CompilerServices
78
open System.Reflection
89

@@ -42,7 +43,7 @@ type BasicErasingProvider (config : TypeProviderConfig) as this =
4243
ProvidedMethod("NameOf", [ param ], typeof<string>, isStatic = true, invokeCode = fun args ->
4344
<@@
4445
match (%%args.[0]) : Expr<int> with
45-
| Microsoft.FSharp.Quotations.Patterns.ValueWithName (_, _, n) -> n
46+
| ValueWithName (_, _, n) -> n
4647
| e -> failwithf "Invalid quotation argument (expected ValueWithName): %A" e
4748
@@>)
4849
myType.AddMember(nameOf)

0 commit comments

Comments
 (0)