@@ -22,6 +22,7 @@ open FSharp.Compiler.Range
2222open FSharp.Compiler .Ast
2323open FSharp.Compiler .Lib
2424open FSharp.Compiler .PrettyNaming
25+ open FSharp.Compiler .Features
2526
2627open Internal.Utilities
2728
@@ -180,8 +181,8 @@ type public TcGlobals(compilingFslib: bool, ilg:ILGlobals, fslibCcu: CcuThunk, d
180181 // The helper to find system types amongst referenced DLLs
181182 tryFindSysTypeCcu,
182183 emitDebugInfoInQuotations: bool, noDebugData: bool,
183- pathMap: PathMap) =
184-
184+ pathMap: PathMap, langVersion : LanguageVersion ) =
185+
185186 let vara = NewRigidTypar " a" envRange
186187 let varb = NewRigidTypar " b" envRange
187188 let varc = NewRigidTypar " c" envRange
@@ -239,7 +240,7 @@ type public TcGlobals(compilingFslib: bool, ilg:ILGlobals, fslibCcu: CcuThunk, d
239240 // Search for a type. If it is not found, leave a dangling CCU reference with some useful diagnostic information should
240241 // the type actually be dereferenced
241242 let findSysTypeCcu path typeName =
242- match tryFindSysTypeCcu path typeName with
243+ match tryFindSysTypeCcu path typeName with
243244 | None -> CcuThunk.CreateDelayed( dummyAssemblyNameCarryingUsefulErrorInformation path typeName)
244245 | Some ccu -> ccu
245246
@@ -904,6 +905,7 @@ type public TcGlobals(compilingFslib: bool, ilg:ILGlobals, fslibCcu: CcuThunk, d
904905 member __.emitDebugInfoInQuotations = emitDebugInfoInQuotations
905906 member __.directoryToResolveRelativePaths = directoryToResolveRelativePaths
906907 member __.pathMap = pathMap
908+ member __.langVersion = langVersion
907909 member __.unionCaseRefEq x y = primUnionCaseRefEq compilingFslib fslibCcu x y
908910 member __.valRefEq x y = primValRefEq compilingFslib fslibCcu x y
909911 member __.fslibCcu = fslibCcu
0 commit comments