remove panic

This commit is contained in:
Folkert 2020-04-13 22:35:34 +02:00
parent f6af66f342
commit 63bc923b37
4 changed files with 5 additions and 5 deletions

View file

@ -277,9 +277,7 @@ fn to_type(solved_type: &SolvedType, free_vars: &mut FreeVars, var_store: &VarSt
Type::Alias(*symbol, type_variables, Box::new(actual))
}
Error => {
panic!("TODO convert from SolvedType::Error to Type somehow");
}
Error => Type::Erroneous(roc_types::types::Problem::SolvedTypeError),
Erroneous(problem) => Type::Erroneous(problem.clone()),
}
}