fsharp41: Add patch to avoid type inference error. (#103223)

https://github.com/mono/mono/pull/13109/

Co-authored-by: Moises Nessim <moises.nessim@topmanage.com>
This commit is contained in:
moinessim 2020-11-10 07:52:13 -05:00 committed by GitHub
parent de47c1907c
commit 24c8927c4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 0 deletions

View File

@ -41,6 +41,7 @@ stdenv.mkDerivation rec {
./fsharp-IsPathRooted-type-inference.patch
./fsharp-string-switchName.patch
./fsharp-path-overloads.patch
./fsharp-GetFileNameWithoutExtension-type-inference.patch
];
configurePhase = ''

View File

@ -0,0 +1,13 @@
diff --git a/src/scripts/fssrgen.fsx b/src/scripts/fssrgen.fsx
index 0bee9b79e..e6ceda11e 100644
--- a/src/scripts/fssrgen.fsx
+++ b/src/scripts/fssrgen.fsx
@@ -329,7 +329,7 @@ let StringBoilerPlate filename =
// END BOILERPLATE
"
-let RunMain(filename, outFilename, outXmlFilenameOpt, projectNameOpt) =
+let RunMain(filename:string, outFilename, outXmlFilenameOpt, projectNameOpt) =
try
let justfilename = System.IO.Path.GetFileNameWithoutExtension(filename)
if justfilename |> Seq.exists (fun c -> not(System.Char.IsLetterOrDigit(c))) then