Fast locals part 3

This commit is contained in:
Noah 2020-11-30 19:40:12 -06:00
parent e18275566a
commit 8458e13e35
3 changed files with 141 additions and 74 deletions

View file

@ -36,6 +36,7 @@ pub enum CompileErrorType {
AsyncReturnValue,
InvalidFuturePlacement,
InvalidFutureFeature(String),
FunctionImportStar,
}
impl fmt::Display for CompileErrorType {
@ -66,6 +67,9 @@ impl fmt::Display for CompileErrorType {
CompileErrorType::InvalidFutureFeature(feat) => {
write!(f, "future feature {} is not defined", feat)
}
CompileErrorType::FunctionImportStar => {
write!(f, "import * only allowed at module level")
}
}
}
}