mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Unwrap layouts containing void layouts as newtypes
Addresses the attempt to do so in https://github.com/roc-lang/roc/pull/3465 Co-authored-by: Folkert <folkert@folkertdev.nl>
This commit is contained in:
parent
639c1e5fa3
commit
f41936d5e5
9 changed files with 228 additions and 14 deletions
|
@ -1949,3 +1949,16 @@ fn match_on_result_with_uninhabited_error_branch() {
|
|||
"#
|
||||
)
|
||||
}
|
||||
|
||||
#[mono_test]
|
||||
fn unreachable_void_constructor() {
|
||||
indoc!(
|
||||
r#"
|
||||
app "test" provides [main] to "./platform"
|
||||
|
||||
x : []
|
||||
|
||||
main = if True then Ok x else Err "abc"
|
||||
"#
|
||||
)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue