Skip to content

Fix recursive import check and add test cases

Fredrik Wieczerkowski requested to merge fix-recursive-import-check into master

Fixes #131 (closed)

This fixes the dependency check for recursively imported modules, e.g.

module Recursive where

import Recursive

which now generates the correct error message, along with span information

.../src/Recursive.curry:1:8-1:16 Error:
    Recursive import for module Recursive
   | 
 1 | module Recursive where
   |        ^^^^^^^^^
ERROR occurred during parsing!

Merge request reports

Loading