Skip to content

Commit

Permalink
Typecheck Expressions - Avoid a BUG that wasn't very useful
Browse files Browse the repository at this point in the history
  • Loading branch information
thepowersgang committed Jan 18, 2024
1 parent 0be9e89 commit bd7746c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hir_typeck/helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,9 @@ void HMTypeInferrence::add_ivars(::HIR::TypeRef& type)
this->add_ivars_params(marker.m_params);
}
TU_ARMA(ErasedType, e) {
BUG(Span(), "ErasedType getting ivars added");
if( type_contains_ivars(type) ) {
BUG(Span(), "ErasedType getting ivars added - " << type);
}
}
TU_ARMA(Array, e) {
add_ivars(e.inner);
Expand Down

0 comments on commit bd7746c

Please sign in to comment.