mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Allow imports anywhere in the module outside of ct statements.
This commit is contained in:
@@ -2,4 +2,8 @@ module foo;
|
||||
|
||||
fn void hello() {}
|
||||
|
||||
import bar; // #error: Imports are only allowed directly after the module declaration
|
||||
$if (true):
|
||||
|
||||
import bar; // #error: 'import' may not appear inside a compile
|
||||
|
||||
$endif;
|
||||
@@ -2,4 +2,8 @@ module foo;
|
||||
|
||||
fn void hello() {}
|
||||
|
||||
import bar; // #error: Imports are only allowed directly after the module declaration
|
||||
$if (true):
|
||||
|
||||
import bar; // #error: 'import' may not appear inside a compile
|
||||
|
||||
$endif;
|
||||
Reference in New Issue
Block a user