mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
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:
parent
18d3f6b1dc
commit
0077f71c35
2 changed files with 0 additions and 27 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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("")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue