mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
the test
This commit is contained in:
parent
82a4b31c08
commit
f35a20bc16
2 changed files with 2 additions and 3 deletions
|
@ -4733,6 +4733,7 @@ pub fn from_can<'a>(
|
||||||
CapturedSymbols::None
|
CapturedSymbols::None
|
||||||
}
|
}
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
|
// just allow this. see https://github.com/rtfeldman/roc/issues/1585
|
||||||
if captured_symbols.is_empty() {
|
if captured_symbols.is_empty() {
|
||||||
CapturedSymbols::None
|
CapturedSymbols::None
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -2712,7 +2712,6 @@ fn int_literal_not_specialized() {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[ignore]
|
|
||||||
fn unresolved_tvar_when_capture_is_unused() {
|
fn unresolved_tvar_when_capture_is_unused() {
|
||||||
// see https://github.com/rtfeldman/roc/issues/1585
|
// see https://github.com/rtfeldman/roc/issues/1585
|
||||||
assert_evals_to!(
|
assert_evals_to!(
|
||||||
|
@ -2725,8 +2724,7 @@ fn unresolved_tvar_when_capture_is_unused() {
|
||||||
r : Bool
|
r : Bool
|
||||||
r = False
|
r = False
|
||||||
|
|
||||||
# underscore does not change the problem, maybe it's type-related? We don 't really know what `Green` refers to below
|
p1 = (\_ -> r == (1 == 1))
|
||||||
p1 = (\x -> r == (1 == 1))
|
|
||||||
oneOfResult = List.map [p1] (\p -> p Green)
|
oneOfResult = List.map [p1] (\p -> p Green)
|
||||||
|
|
||||||
when oneOfResult is
|
when oneOfResult is
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue