Legalize uextend and sextend to 128bit ints

This commit is contained in:
bjorn3
2019-11-16 16:25:57 +01:00
committed by Andrew Brown
parent 0b7e7916bd
commit c5e74986e1
5 changed files with 100 additions and 7 deletions

View File

@@ -161,8 +161,16 @@ impl TypeEnvironment {
// Check extra conditions for InTypeset constraints.
if let Constraint::InTypeset(tv, _) = &constraint {
assert!(tv.base.is_none());
assert!(tv.name.starts_with("typeof_"));
assert!(
tv.base.is_none(),
"type variable is {:?}, while expecting none",
tv
);
assert!(
tv.name.starts_with("typeof_"),
"Name \"{}\" should start with \"typeof_\"",
tv.name
);
}
self.constraints.push(constraint);