Convert issue8665 to eval test instead of fx test

The bug doesn't require the fx platform to reproduce - it's purely
an interpreter issue with method dispatch on nominal types. The eval
test in src/eval/test/eval_test.zig is sufficient.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Richard Feldman 2025-12-13 19:23:56 -05:00
parent 18d3f6b1dc
commit 0077f71c35
No known key found for this signature in database
2 changed files with 0 additions and 27 deletions

View file

@ -1162,18 +1162,3 @@ test "external platform memory alignment regression" {
try checkSuccess(run_result);
}
test "fx platform Try.ok_or static dispatch regression" {
// Regression test for issue #8665: InvalidMethodReceiver crash on static dispatch for Try type
// The traditional function call syntax works:
// _str1 = Try.ok_or(List.get(list, 0), "")
// But the method call syntax crashes:
// _str2 = List.get(list, 0).ok_or("")
const allocator = testing.allocator;
const run_result = try runRoc(allocator, "test/fx/issue8665.roc", .{});
defer allocator.free(run_result.stdout);
defer allocator.free(run_result.stderr);
try checkSuccess(run_result);
}

View file

@ -1,12 +0,0 @@
app [main!] { pf: platform "./platform/main.roc" }
# Regression test for issue #8665: InvalidMethodReceiver crash on static dispatch for Try type
# The traditional function call syntax works:
# _str1 = Try.ok_or(List.get(list, 0), "")
# But the method call syntax crashes:
# _str2 = List.get(list, 0).ok_or("")
main! = || {
list = [""]
_str1 = Try.ok_or(List.get(list, 0), "")
_str2 = List.get(list, 0).ok_or("")
}