File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
compiler/src/Canonicalize Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import qualified Canonicalize.Pattern as Pattern
2828import qualified Canonicalize.Type as Type
2929import qualified Data.Index as Index
3030import qualified Elm.Name as N
31+ import qualified Elm.Package as Pkg
3132import qualified Reporting.Annotation as A
3233import qualified Reporting.Error.Canonicalize as Error
3334import qualified Reporting.Region as R
@@ -730,7 +731,7 @@ findVarQual region (Env.Env localHome vs _ _ _ qvs _ _) prefix name =
730731 Result. throw (Error. NotFoundVar region (Just prefix) name (toPossibleNames vs qvs))
731732
732733 Nothing ->
733- if ModuleName. isKernel prefix then
734+ if ModuleName. isKernel prefix && Pkg. isKernel ( ModuleName. _package localHome) then
734735 Result. ok $ Can. VarKernel (ModuleName. getKernel prefix) name
735736 else
736737 Result. throw (Error. NotFoundVar region (Just prefix) name (toPossibleNames vs qvs))
You can’t perform that action at this time.
0 commit comments