-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix taking owned resource handles in Rust imports
I went ahead and did a bit more refactoring at the logic here since I think the old conditions aren't as applicable any more (they haven't aged well) Closes #668
- Loading branch information
1 parent
9e20991
commit 3e353c0
Showing
3 changed files
with
44 additions
and
8 deletions.
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
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,20 @@ | ||
package test:test | ||
|
||
interface test-import { | ||
resource resource-a { | ||
constructor(id: u32) | ||
} | ||
|
||
record record-a { | ||
resource-a: resource-a, | ||
resources: list<resource-a>, | ||
} | ||
|
||
resource resource-b { | ||
make: static func(record-a: record-a) | ||
} | ||
} | ||
|
||
world test-world { | ||
import test-import | ||
} |