marianoguerra/efene — Issue #41: @import doesn't work
Author: vmx
Created: 2011-11-27 18:02:29+00:00
State: open

Hi,

I tried to play a bit with `@import`. But I can't compile any file that contains `@import`. I've tried the example (trimmed a bit down to only `@import` the ifn and erl file) from http://www.efenelang.org/2011/08/rfc-introducing-experimental-polyglot.html

I always get:

Compiling importall.ifn
.:none: internal error in lint_module;
crash reason: {function_clause,[{erl_lint,package_to_string,[{run,0}]},
{erl_lint,import,3},
{lists,foldl,3},
{erl_lint,forms,2},
{erl_lint,module,3},
{compile,lint_module,1},
{compile,'-internal_comp/4-anonymous-1-',2},
{compile,fold_comp,3}]}
exception throw: error
in function fn:get_code/1
in call from fn:compile/2
in call from fn:compile_files/2
in call from fn_errors:handle/1

Cheers,
Volker