Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/Compiler/Driver/CompilerImports.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2341,6 +2341,12 @@ and [<Sealed>] TcImports
let! ccuinfos = phase2s |> runMethod

if importsBase.IsSome then
let addConstraintSources (ia: ImportedAssembly) =
// Only an F# assembly can carry a trait constraint to label.
// Prevent force-reading of the whole assembly namespace tree for other assemblies.
if ia.FSharpViewOfMetadata.IsFSharp then
addConstraintSources ia

importsBase.Value.CcuTable.Values |> Seq.iter addConstraintSources
ccuTable.Values |> Seq.iter addConstraintSources

Expand Down
Loading