mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
make function names unique by adding layout hash
This commit is contained in:
parent
c36a82d134
commit
d4bb5053b8
3 changed files with 85 additions and 22 deletions
|
@ -1196,7 +1196,7 @@ fn monomorphized_applied_tag() {
|
|||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
|
||||
fn monomorphized_tag_with_polymorphic_arg() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
|
@ -1219,17 +1219,17 @@ fn monomorphized_tag_with_polymorphic_arg() {
|
|||
Wrapped A -> 5
|
||||
Wrapped B -> 7
|
||||
|
||||
useWrap1 (wrap {}) * useWrap2 (wrap {})
|
||||
if Bool.true then useWrap1 (wrap {}) else useWrap2 (wrap {})
|
||||
"#
|
||||
),
|
||||
10,
|
||||
2,
|
||||
u8
|
||||
)
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||
fn monomorphized_tag_with_polymorphic_arg_and_monomorphic_arg() {
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
|
||||
fn monomorphized_tag_with_polymorphic_and_monomorphic_arg() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue