@@ -2175,7 +2175,7 @@ module MutRecBindingChecking =
21752175 /// Compute the active environments within each nested module.
21762176 let TcMutRecDefns_ComputeEnvs getTyconOpt getVals ( cenv : cenv ) report scopem m envInitial mutRecShape =
21772177 ( envInitial, mutRecShape) ||> MutRecShapes.computeEnvs
2178- ( fun envAbove ( MutRecDefnsPhase2DataForModule ( mtypeAcc , mspec )) -> MakeInnerEnvWithAcc envAbove mspec.Id mtypeAcc mspec.ModuleOrNamespaceType.ModuleOrNamespaceKind)
2178+ ( fun envAbove ( MutRecDefnsPhase2DataForModule ( mtypeAcc , mspec )) -> MakeInnerEnvWithAcc true envAbove mspec.Id mtypeAcc mspec.ModuleOrNamespaceType.ModuleOrNamespaceKind)
21792179 ( fun envAbove decls ->
21802180
21812181 // Collect the type definitions, exception definitions, modules and "open" declarations
@@ -3202,7 +3202,7 @@ module EstablishTypeDefinitionCores =
32023202 CheckForDuplicateConcreteType envInitial id.idText im
32033203 CheckNamespaceModuleOrTypeName cenv.g id
32043204
3205- let envForDecls , mtypeAcc = MakeInnerEnv envInitial id modKind
3205+ let envForDecls , mtypeAcc = MakeInnerEnv true envInitial id modKind
32063206 let mty = Construct.NewEmptyModuleOrNamespaceType modKind
32073207 let doc = xml.ToXmlDoc( true , Some [])
32083208 let mspec = Construct.NewModuleOrNamespace ( Some envInitial.eCompPath) vis id doc modAttrs ( MaybeLazy.Strict mty)
@@ -4341,7 +4341,7 @@ module EstablishTypeDefinitionCores =
43414341 ( envInitial, withEntities) ||> MutRecShapes.computeEnvs
43424342 ( fun envAbove ( MutRecDefnsPhase2DataForModule ( mtypeAcc , mspec )) ->
43434343 PublishModuleDefn cenv envAbove mspec
4344- MakeInnerEnvWithAcc envAbove mspec.Id mtypeAcc mspec.ModuleOrNamespaceType.ModuleOrNamespaceKind)
4344+ MakeInnerEnvWithAcc true envAbove mspec.Id mtypeAcc mspec.ModuleOrNamespaceType.ModuleOrNamespaceKind)
43454345 ( fun envAbove _ -> envAbove)
43464346
43474347 // Updates the types of the modules to contain the contents so far, which now includes the nested modules and types
@@ -5212,7 +5212,7 @@ and TcModuleOrNamespaceSignatureElementsNonMutRec cenv parent env (id, modKind,
52125212 let endm = m.EndRange // use end of range for errors
52135213
52145214 // Create the module type that will hold the results of type checking....
5215- let envForModule , mtypeAcc = MakeInnerEnv env id modKind
5215+ let envForModule , mtypeAcc = MakeInnerEnv true env id modKind
52165216
52175217 // Now typecheck the signature, using mutation to fill in the submodule description.
52185218 let! envAtEnd = TcSignatureElements cenv parent endm envForModule xml None defs
@@ -5350,7 +5350,7 @@ let rec TcModuleOrNamespaceElementNonMutRec (cenv: cenv) parent typeNames scopem
53505350
53515351 CheckNamespaceModuleOrTypeName cenv.g id
53525352
5353- let envForModule , mtypeAcc = MakeInnerEnv env id modKind
5353+ let envForModule , mtypeAcc = MakeInnerEnv true env id modKind
53545354
53555355 // Create the new module specification to hold the accumulated results of the type of the module
53565356 // Also record this in the environment as the accumulator
0 commit comments