mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Do not attempt to handle aliasing of procs in variable assignments
Please see the comment in the diff to explain the rationale of this change. Closes #4636
This commit is contained in:
parent
2dfe0276e4
commit
68e364d897
10 changed files with 119 additions and 31 deletions
|
|
@ -2049,3 +2049,20 @@ fn crash() {
|
|||
"#
|
||||
)
|
||||
}
|
||||
|
||||
#[mono_test]
|
||||
fn function_pointer_lambda_set() {
|
||||
indoc!(
|
||||
r#"
|
||||
app "test" provides [main] to "./platform"
|
||||
|
||||
number = \{} -> 1u64
|
||||
|
||||
parse = \parser -> parser {}
|
||||
|
||||
main =
|
||||
parser = number
|
||||
parse parser
|
||||
"#
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue