Skip to content

Commit 1410e5b

Browse files
committed
fix load closure
1 parent 14ef3d0 commit 1410e5b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/fsharp/fsi/fsi.fs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2251,11 +2251,10 @@ type internal FsiInteractionProcessor
22512251
let names = names |> List.filter (fun name -> name.StartsWith(stem,StringComparison.Ordinal))
22522252
names
22532253

2254-
member __.ParseAndCheckInteraction (checker, istate, text:string) =
2254+
member __.ParseAndCheckInteraction (referenceResolver, checker, istate, text:string) =
22552255
let tcConfig = TcConfig.Create(tcConfigB,validate=false)
22562256

2257-
let loadClosure = None
2258-
let fsiInteractiveChecker = FsiInteractiveChecker(checker, tcConfig, istate.tcGlobals, istate.tcImports, istate.tcState, loadClosure)
2257+
let fsiInteractiveChecker = FsiInteractiveChecker(referenceResolver, checker, tcConfig, istate.tcGlobals, istate.tcImports, istate.tcState)
22592258
fsiInteractiveChecker.ParseAndCheckInteraction(text)
22602259

22612260

@@ -2537,7 +2536,7 @@ type FsiEvaluationSession (fsi: FsiEvaluationSessionHostConfig, argv:string[], i
25372536
fsiInteractionProcessor.CompletionsForPartialLID (fsiInteractionProcessor.CurrentState, longIdent) |> Seq.ofList
25382537

25392538
member x.ParseAndCheckInteraction(code) =
2540-
fsiInteractionProcessor.ParseAndCheckInteraction (checker.ReactorOps, fsiInteractionProcessor.CurrentState, code)
2539+
fsiInteractionProcessor.ParseAndCheckInteraction (referenceResolver, checker.ReactorOps, fsiInteractionProcessor.CurrentState, code)
25412540

25422541
member x.CurrentPartialAssemblySignature =
25432542
fsiDynamicCompiler.CurrentPartialAssemblySignature (fsiInteractionProcessor.CurrentState)

0 commit comments

Comments
 (0)