-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6353f46
commit 637157a
Showing
5 changed files
with
97 additions
and
19 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
third_party/move/move-compiler-v2/tests/checking/naming/module_struct_same_name.exp
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,33 @@ | ||
|
||
Diagnostics: | ||
warning: unused alias | ||
┌─ tests/checking/naming/module_struct_same_name.move:8:15 | ||
│ | ||
8 │ use 0x42::M::{Self, M}; | ||
│ ^ Unused 'use' of alias 'M'. Consider removing it | ||
|
||
// -- Model dump before bytecode pipeline | ||
module 0x42::M { | ||
enum M { | ||
M, | ||
} | ||
} // end 0x42::M | ||
module 0x42::M1 { | ||
use 0x42::M::{Self, M}; // resolved as: 0x42::M | ||
private fun test(_m: M::M): u64 { | ||
3 | ||
} | ||
} // end 0x42::M1 | ||
|
||
// -- Sourcified model before bytecode pipeline | ||
module 0x42::M { | ||
enum M has drop { | ||
M, | ||
} | ||
} | ||
module 0x42::M1 { | ||
use 0x42::M; | ||
fun test(_m: M::M): u64 { | ||
3 | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
third_party/move/move-compiler-v2/tests/checking/naming/module_struct_same_name.move
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,13 @@ | ||
module 0x42::M { | ||
enum M has drop { | ||
M | ||
} | ||
} | ||
|
||
module 0x42::M1 { | ||
use 0x42::M::{Self, M}; | ||
|
||
fun test(_m: M::M): u64 { | ||
3 | ||
} | ||
} |
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