Specialize polymorphic values before binding to pattern

Closes #2811
This commit is contained in:
Ayaz Hafiz 2022-04-07 14:03:29 -04:00
parent 37729c08cc
commit a12e40a310
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
4 changed files with 50 additions and 7 deletions

View file

@ -1282,6 +1282,17 @@ fn issue_2583_specialize_errors_behind_unified_branches() {
)
}
#[mono_test]
fn issue_2811() {
indoc!(
r#"
x = Command { tool: "bash" }
Command c = x
c.tool
"#
)
}
// #[ignore]
// #[mono_test]
// fn static_str_closure() {