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:
parent
de47c1907c
commit
24c8927c4a
@ -41,6 +41,7 @@ stdenv.mkDerivation rec {
|
|||||||
./fsharp-IsPathRooted-type-inference.patch
|
./fsharp-IsPathRooted-type-inference.patch
|
||||||
./fsharp-string-switchName.patch
|
./fsharp-string-switchName.patch
|
||||||
./fsharp-path-overloads.patch
|
./fsharp-path-overloads.patch
|
||||||
|
./fsharp-GetFileNameWithoutExtension-type-inference.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user