mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
fix: #386
This commit is contained in:
parent
fcc75c3071
commit
d4d239bd4a
1 changed files with 1 additions and 1 deletions
|
@ -1719,7 +1719,7 @@ impl ASTLowerer {
|
|||
sup_class: &hir::Expr,
|
||||
sub_sig: &hir::Signature,
|
||||
) {
|
||||
if let TypeObj::Generated(gen) = type_obj.base_or_sup().unwrap() {
|
||||
if let Some(TypeObj::Generated(gen)) = type_obj.base_or_sup() {
|
||||
if let Some(impls) = gen.impls() {
|
||||
if !impls.contains_intersec(&mono("InheritableType")) {
|
||||
errs.push(LowerError::inheritance_error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue