roc-lang / roc

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

Fix hang on qualified import with builtin name #6863

Closed agu-z closed 4 months ago

agu-z commented 4 months ago

The compiler would hang when it encountered an import with a module name that matched a builtin name regardless of whether it was package-qualified.

import pf.List

Instead of hanging we will now report the usual FILE NOT FOUND error, or IMPORT NAME CONFLICT if it exists.

This will help prevent some confusion when Task becomes a builtin.