mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 18:58:30 +00:00
fix: type declaration bugs
This commit is contained in:
parent
446262d74c
commit
a8abb7709e
7 changed files with 87 additions and 41 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue