-
Notifications
You must be signed in to change notification settings - Fork 11.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More code cleanup, features, tests, t and bug fixes.
- Loading branch information
Showing
19 changed files
with
558 additions
and
112 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...ve/crates/move-compiler-transactional-tests/tests/dependencies/dependency_order_enums.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 @@ | ||
processed 5 tasks |
43 changes: 43 additions & 0 deletions
43
...e/crates/move-compiler-transactional-tests/tests/dependencies/dependency_order_enums.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,43 @@ | ||
//# init --edition 2024.alpha | ||
|
||
//# publish | ||
module 0x42::D { | ||
public enum T { | ||
A, | ||
} | ||
|
||
public fun foo(): T { | ||
T::A | ||
} | ||
} | ||
|
||
//# publish | ||
module 0x42::C { | ||
public enum T has drop { | ||
A, | ||
} | ||
|
||
public fun foo(): T { | ||
T::A | ||
} | ||
} | ||
|
||
//# publish | ||
// names used to try to force an ordering of depedencies | ||
module 0x42::B { | ||
public fun foo(): (0x42::C::T, 0x42::D::T) { | ||
(0x42::C::foo(), 0x42::D::foo()) | ||
} | ||
} | ||
|
||
//# publish | ||
module 0x42::A { | ||
public struct T { | ||
t_c: 0x42::C::T, | ||
t_d: 0x42::D::T, | ||
} | ||
public fun foo(): T { | ||
let (t_c, t_d) = 0x42::B::foo(); | ||
T { t_c, t_d } | ||
} | ||
} |
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
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
Oops, something went wrong.