Skip to content

Commit

Permalink
More readable asserts.
Browse files Browse the repository at this point in the history
  • Loading branch information
someone-with-default-username committed Sep 21, 2015
1 parent e5aa463 commit f5e569f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ncc/hierarchy/TypeInfo.n
Original file line number Diff line number Diff line change
Expand Up @@ -947,8 +947,9 @@ public abstract class TypeInfo : MemberInfo, IMember,

match (LookupParentInstantiations(typeInfo))
{
| [x] => x
| _ => assert(false, "more than one Instantiation of parent type was foud");
| [x] => x
| [] => assert3(false, "no instantiations of parent type was found");
| items => assert3(false, $"more than one instantiation of parent type was found: ..$items");
}
}

Expand Down

0 comments on commit f5e569f

Please sign in to comment.