Fix some tests and docs

This commit is contained in:
Richard Feldman 2020-06-25 22:11:44 -04:00
parent 22cc618436
commit 55045e1cea
7 changed files with 302 additions and 50 deletions

View file

@ -58,9 +58,7 @@ impl<'a> Layout<'a> {
) -> Result<Self, LayoutProblem> {
use roc_types::subs::Content::*;
eprint!("content: ");
match content.dbg(subs) {
match content {
FlexVar(_) | RigidVar(_) => Err(LayoutProblem::UnresolvedTypeVar),
Structure(flat_type) => layout_from_flat_type(arena, flat_type, subs, pointer_size),