fix unsupported default parameter error message

This commit is contained in:
Sebastien Bourdeauducq 2021-11-23 15:34:44 +08:00
parent 970f075490
commit de8fc264d7
1 changed files with 1 additions and 1 deletions

View File

@ -461,6 +461,6 @@ pub fn parse_parameter_default_value(default: &ast::Expr, resolver: &(dyn Symbol
)
)
}
_ => unimplemented!("only constant default is supported now at {}", default.location),
_ => Err(format!("unsupported default parameter at {}", default.location))
}
}