Skip to content
Merged
Show file tree
Hide file tree
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
16 changes: 10 additions & 6 deletions compiler/cases/imports.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
{
"id": "imports/bare-own-namespace",
"description": "a bare path to the package's own schema as a whole is an error",
"description": "a bare path to the package's own schema as a whole is an error, and so is the bare Blob after it, as a whole-namespace use brings in only its name: every error is reported",
"packages": [
{
"name": "app",
Expand All @@ -60,6 +60,10 @@
{
"code": "import::bare-own-schema-path",
"severity": "error"
},
{
"code": "reference::not-in-scope",
"severity": "error"
}
]
}
Expand Down Expand Up @@ -409,7 +413,7 @@
},
{
"id": "imports/unknown-first-segment",
"description": "a bare path that is neither a dependency, std nor one of the package's schemas is unresolved, not this error",
"description": "a bare path that is neither a dependency, std nor one of the package's schemas is unresolved, not this error; the use still brings Blob into scope, so the bare Blob after it is no second error, as in Rust",
"packages": [
{
"name": "app",
Expand Down Expand Up @@ -499,7 +503,7 @@
"schemas": [
{
"path": "src/api.ids",
"text": "struct Upload {\n blob: Blob\n}\n"
"text": "struct Upload {\n size: u32\n}\n"
}
],
"dependencies": [
Expand Down Expand Up @@ -539,7 +543,7 @@
"schemas": [
{
"path": "src/api.ids",
"text": "struct Upload {\n blob: Blob\n}\n"
"text": "struct Upload {\n size: u32\n}\n"
}
],
"dependencies": [
Expand Down Expand Up @@ -579,7 +583,7 @@
"schemas": [
{
"path": "src/api.ids",
"text": "struct Upload {\n blob: Blob\n}\n"
"text": "struct Upload {\n size: u32\n}\n"
}
],
"dependencies": [
Expand Down Expand Up @@ -619,7 +623,7 @@
"schemas": [
{
"path": "src/api.ids",
"text": "struct Upload {\n blob: Blob\n}\n"
"text": "struct Upload {\n size: u32\n}\n"
}
],
"dependencies": [
Expand Down
Loading
Loading