fix: type declaration bugs

This commit is contained in:
Shunsuke Shibayama 2023-06-04 16:48:21 +09:00
parent 446262d74c
commit a8abb7709e
7 changed files with 87 additions and 41 deletions

View file

@ -572,7 +572,7 @@ impl Context {
tmp_tv_cache: &mut TyVarCache,
not_found_is_qvar: bool,
) -> TyCheckResult<Type> {
match poly_spec.acc.to_string().trim_start_matches("::") {
match poly_spec.acc.to_string().trim_start_matches([':', '.']) {
"Array" => {
// TODO: kw
let mut args = poly_spec.args.pos_args();