-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added tests of alias reexports, remove alias map from LexicalScope
- Loading branch information
Showing
15 changed files
with
60 additions
and
148 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
8 changes: 0 additions & 8 deletions
8
test/src/e2e_vm_tests/test_programs/should_fail/aliased_imports/Forc.lock
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
test/src/e2e_vm_tests/test_programs/should_fail/aliased_imports/Forc.toml
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
test/src/e2e_vm_tests/test_programs/should_fail/aliased_imports/json_abi_oracle.json
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
test/src/e2e_vm_tests/test_programs/should_fail/aliased_imports/src/bar.sw
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
test/src/e2e_vm_tests/test_programs/should_fail/aliased_imports/src/foo.sw
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
test/src/e2e_vm_tests/test_programs/should_fail/aliased_imports/src/main.sw
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
test/src/e2e_vm_tests/test_programs/should_fail/aliased_imports/test.toml
This file was deleted.
Oops, something went wrong.
5 changes: 0 additions & 5 deletions
5
test/src/e2e_vm_tests/test_programs/should_pass/language/aliased_imports/src/bar.sw
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
test/src/e2e_vm_tests/test_programs/should_pass/language/aliased_imports/src/foo.sw
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 |
---|---|---|
@@ -1,7 +1,5 @@ | ||
library; | ||
|
||
use ::bar::Bar as Baz; // This is reexported at Baz | ||
|
||
pub struct Foo { | ||
pub foo: u64, | ||
} |
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
3 changes: 3 additions & 0 deletions
3
test/src/e2e_vm_tests/test_programs/should_pass/language/aliased_imports/src/wiz.sw
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 |
---|---|---|
@@ -1,5 +1,8 @@ | ||
library; | ||
|
||
// Dead code analysis disabled due to a bug. | ||
// See https://github.com/FuelLabs/sway/issues/5902#issuecomment-2079212717 | ||
#[allow(dead_code)] | ||
pub struct Wiz { | ||
pub wiz: u64, | ||
} |
2 changes: 1 addition & 1 deletion
2
test/src/e2e_vm_tests/test_programs/should_pass/language/aliased_imports/test.toml
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
category = "run" | ||
expected_result = { action = "return", value = 234 } | ||
expected_result = { action = "return", value = 170 } | ||
validate_abi = true |