From c4e1e337ebf6dbd0a038d8ee73f750b9bd49448a Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Sat, 13 Dec 2025 19:29:47 -0500 Subject: [PATCH] Remove redundant fx test for issue 8664 The bug is already covered by the faster eval test in eval_test.zig. The fx platform test is not needed since the bug is purely in the interpreter's for loop element type handling. --- src/cli/test/fx_test_specs.zig | 5 ----- test/fx/issue8664.roc | 23 ----------------------- 2 files changed, 28 deletions(-) delete mode 100644 test/fx/issue8664.roc diff --git a/src/cli/test/fx_test_specs.zig b/src/cli/test/fx_test_specs.zig index 51ee3e5f28..75ef1396bb 100644 --- a/src/cli/test/fx_test_specs.zig +++ b/src/cli/test/fx_test_specs.zig @@ -238,11 +238,6 @@ pub const io_spec_tests = [_]TestSpec{ .io_spec = "0short|0<|1>", .description = "Regression test: Stdin.line! in while loop with short input (small string optimization)", }, - .{ - .roc_file = "test/fx/issue8664.roc", - .io_spec = "1>num: 8.0|1>num: 7.0|1>result: 7.0", - .description = "Regression test: Issue #8664 - InvalidMethodReceiver when calling methods on elements from untyped list parameter", - }, }; /// Get the total number of IO spec tests diff --git a/test/fx/issue8664.roc b/test/fx/issue8664.roc deleted file mode 100644 index e035cbea8e..0000000000 --- a/test/fx/issue8664.roc +++ /dev/null @@ -1,23 +0,0 @@ -app [main!] { pf: platform "./platform/main.roc" } - -import pf.Stdout - -# Test for issue #8664: InvalidMethodReceiver crash -# The bug occurs when calling .to_str() on elements from a list parameter -# that doesn't have an explicit type annotation. - -# No type annotation on calc - the parameter `line` has inferred type -calc = |line| { - var $num = 0 - for num in List.drop_last(line, 1) { - $num = num - Stdout.line!("num: ${num.to_str()}") - } - $num -} - -main! = || { - line = [8, 7, 6] - num = calc(line) - Stdout.line!("result: ${num.to_str()}") -}