require the base to be linear
This commit is contained in:
parent
95d60987da
commit
0b83db91dd
1 changed files with 5 additions and 0 deletions
|
@ -648,6 +648,11 @@ impl Flattener {
|
|||
statements_flattened,
|
||||
base.clone(),
|
||||
);
|
||||
|
||||
// we require from the base to be linear
|
||||
// TODO change that
|
||||
assert!(base.is_linear());
|
||||
|
||||
match e {
|
||||
// flatten(base ** 1) == flatten(base)
|
||||
e if *e == T::one() => {
|
||||
|
|
Loading…
Reference in a new issue