Stream: beginners

Topic: "TODO turn fn_var into a RuntimeError"


view this post on Zulip Dan G Knutson (Nov 06 2024 at 03:10):

What does this message in roc_mono::ir mean?

I'm working off of the purity inference branch, but the sorted_field_symbols case I'm hitting is from 2021. I'm wondering if hitting that message means I'm doing something that's not intended to be valid roc, or it's a compiler bug, or just a TODO in an incomplete area.

I'm trying to keep a couple lambdas in a record, which seems like something that's maybe asking for trouble. If that's the root of it I can try another way around.

view this post on Zulip Brendan Hansknecht (Nov 06 2024 at 03:36):

Turn into runtime error, that suggests to me it would fail either way.

view this post on Zulip Brendan Hansknecht (Nov 06 2024 at 03:36):

What do you get out of roc check?

view this post on Zulip Dan G Knutson (Nov 06 2024 at 05:07):

I had some warnings; after resolving them roc build --no-link still hits the fn_var thing

view this post on Zulip Brendan Hansknecht (Nov 06 2024 at 05:15):

intriguing. I'm not sure. If you are hitting a todo, definitely a compiler bug of some sort


Last updated: Jul 06 2025 at 12:14 UTC