From 9ff2d529281eb8696a4631739035696952c4e70c Mon Sep 17 00:00:00 2001 From: Don Syme Date: Tue, 11 Sep 2018 21:00:05 +0100 Subject: [PATCH] void fix for TPSDK --- src/fsharp/ExtensionTyping.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fsharp/ExtensionTyping.fs b/src/fsharp/ExtensionTyping.fs index 2f3eb3aafb2..0d86ca58a05 100755 --- a/src/fsharp/ExtensionTyping.fs +++ b/src/fsharp/ExtensionTyping.fs @@ -428,7 +428,7 @@ module internal ExtensionTyping = member __.GetGenericArguments() = x.GetGenericArguments() |> ProvidedType.CreateArray ctxt member __.ApplyStaticArguments(provider: ITypeProvider, fullTypePathAfterArguments, staticArgs: obj[]) = provider.ApplyStaticArguments(x, fullTypePathAfterArguments, staticArgs) |> ProvidedType.Create ctxt - member __.IsVoid = (typeof.Equals(x)) + member __.IsVoid = (typeof.Equals(x) || (x.Namespace = "System" && x.Name = "Void")) member __.IsGenericParameter = x.IsGenericParameter member __.IsValueType = x.IsValueType member __.IsByRef = x.IsByRef