Skip to content

Commit 27c5d89

Browse files
[release/dev17.4] fix metadata failure due to double integration of signature (#14190)
* fix metadata failure due to double duplication * fix metadata failure due to double duplication Co-authored-by: Don Syme <[email protected]>
1 parent 04c3620 commit 27c5d89

File tree

1 file changed

+4
-32
lines changed

1 file changed

+4
-32
lines changed

src/Compiler/Driver/ParseAndCheckInputs.fs

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1165,26 +1165,6 @@ let AddCheckResultsToTcState
11651165

11661166
ccuSigForFile, tcState
11671167

1168-
let AddDummyCheckResultsToTcState
1169-
(
1170-
tcGlobals,
1171-
amap,
1172-
qualName: QualifiedNameOfFile,
1173-
prefixPathOpt,
1174-
tcSink,
1175-
tcState: TcState,
1176-
tcStateForImplFile: TcState,
1177-
rootSig
1178-
) =
1179-
let hadSig = true
1180-
let emptyImplFile = CreateEmptyDummyImplFile qualName rootSig
1181-
let tcEnvAtEnd = tcStateForImplFile.TcEnvFromImpls
1182-
1183-
let ccuSigForFile, tcState =
1184-
AddCheckResultsToTcState (tcGlobals, amap, hadSig, prefixPathOpt, tcSink, tcState.tcsTcImplEnv, qualName, rootSig) tcState
1185-
1186-
(tcEnvAtEnd, EmptyTopAttrs, Some emptyImplFile, ccuSigForFile), tcState
1187-
11881168
/// Typecheck a single file (or interactive entry into F# Interactive)
11891169
let CheckOneInputAux
11901170
(
@@ -1353,18 +1333,10 @@ let CheckOneInput
13531333

13541334
match partialResult with
13551335
| Choice1Of2 result -> return result, tcState
1356-
| Choice2Of2 (amap, _conditionalDefines, rootSig, _priorErrors, file, tcStateForImplFile, _ccuSigForFile) ->
1357-
return
1358-
AddDummyCheckResultsToTcState(
1359-
tcGlobals,
1360-
amap,
1361-
file.QualifiedName,
1362-
prefixPathOpt,
1363-
tcSink,
1364-
tcState,
1365-
tcStateForImplFile,
1366-
rootSig
1367-
)
1336+
| Choice2Of2 (_amap, _conditionalDefines, rootSig, _priorErrors, file, tcStateForImplFile, ccuSigForFile) ->
1337+
let emptyImplFile = CreateEmptyDummyImplFile file.QualifiedName rootSig
1338+
let tcEnvAtEnd = tcStateForImplFile.TcEnvFromImpls
1339+
return (tcEnvAtEnd, EmptyTopAttrs, Some emptyImplFile, ccuSigForFile), tcState
13681340
}
13691341

13701342
// Within a file, equip loggers to locally filter w.r.t. scope pragmas in each input

0 commit comments

Comments
 (0)