roc-lang / roc

A fast, friendly, functional language.
https://roc-lang.org
Universal Permissive License v1.0
4.46k stars 313 forks source link

Make sure FunctionKind is determined in all entry points #6886

Closed ayazhafiz closed 4 months ago

ayazhafiz commented 4 months ago

There are a lot of entry points for a Roc program. They should probably be all consolidated into one, but for now, when FunctionKind is needed, determine it from the environment. This fixes EXPERIMENTAL_ROC_ERASE for roc test etc.

Also print the location of a failure when internal_error! is called. I think this should panic instead, and I thought it used to - does anyone know if that changed?