mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Just stopping typechecking in interfaces when we have a package import
This commit is contained in:
parent
ff7c2cf21b
commit
7de39df63e
2 changed files with 19 additions and 31 deletions
|
@ -1163,8 +1163,9 @@ fn module_interface_with_qualified_import() {
|
|||
err,
|
||||
indoc!(
|
||||
r#"
|
||||
The package shorthand 'b' that you are using in the 'imports' section of the header doesn't exist in this module.
|
||||
Check that package shorthand is correct or reference the package in an 'app' or 'package' header."#
|
||||
The package shorthand 'b' that you are using in the 'imports' section of the header of module 'tmp/module_interface_with_qualified_import/A' doesn't exist.
|
||||
Check that package shorthand is correct or reference the package in an 'app' or 'package' header.
|
||||
This module is an interface, because of a bug in the compiler we are unable to directly typecheck interface modules with package imports so this error may not be correct. Please start checking at an app, package or platform file that imports this file."#
|
||||
),
|
||||
"\n{}",
|
||||
err
|
||||
|
@ -1191,8 +1192,8 @@ fn app_missing_package_import() {
|
|||
err,
|
||||
indoc!(
|
||||
r#"
|
||||
The package shorthand 'notpack' that you are importing the module 'Mod' from in 'notpack.Mod', doesn't exist in this module.
|
||||
Import it in the "packages" section of the header."#
|
||||
The package shorthand 'notpack' that you are using in the 'imports' section of the header of module 'tmp/app_missing_package_import/Main' doesn't exist.
|
||||
Check that package shorthand is correct or reference the package in an 'app' or 'package' header."#
|
||||
),
|
||||
"\n{}",
|
||||
err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue