mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-11-25 10:24:07 +03:00
Allow imports & Variant::Function functions in stubs
This commit is contained in:
parent
aee748b43f
commit
1fbc16ce24
@ -336,4 +336,12 @@ create_messages!(
|
||||
msg: format!("External types cannot be used inside function (only as input/output types) -- found exported type from '{program}.{file_type}'."),
|
||||
help: None,
|
||||
}
|
||||
|
||||
/// Enforce that cannot use import in program scope
|
||||
@formatted
|
||||
cannot_import_inside_program_body {
|
||||
args: (),
|
||||
msg: format!("Cannot use import inside program body."),
|
||||
help: None,
|
||||
}
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user