mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-21 15:59:20 +03:00
the test
This commit is contained in:
parent
82a4b31c08
commit
f35a20bc16
@ -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…
Reference in New Issue
Block a user