-
Notifications
You must be signed in to change notification settings - Fork 261
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix importing a stable resource as unstable (#2053)
- Loading branch information
1 parent
03876cb
commit d9680fe
Showing
3 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package a:b@0.1.0; | ||
|
||
interface foo { | ||
@unstable(feature = inactive) | ||
use wasi:io/error@0.1.0.{error}; | ||
|
||
@unstable(feature = inactive) | ||
x: func(y: borrow<error>); | ||
} | ||
|
||
package wasi:io@0.1.0 { | ||
interface error { | ||
resource error; | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"worlds": [], | ||
"interfaces": [ | ||
{ | ||
"name": "error", | ||
"types": { | ||
"error": 0 | ||
}, | ||
"functions": {}, | ||
"package": 0 | ||
}, | ||
{ | ||
"name": "foo", | ||
"types": {}, | ||
"functions": {}, | ||
"package": 1 | ||
} | ||
], | ||
"types": [ | ||
{ | ||
"name": "error", | ||
"kind": "resource", | ||
"owner": { | ||
"interface": 0 | ||
} | ||
} | ||
], | ||
"packages": [ | ||
{ | ||
"name": "wasi:[email protected]", | ||
"interfaces": { | ||
"error": 0 | ||
}, | ||
"worlds": {} | ||
}, | ||
{ | ||
"name": "a:[email protected]", | ||
"interfaces": { | ||
"foo": 1 | ||
}, | ||
"worlds": {} | ||
} | ||
] | ||
} |