isTrivial(): Support trivial lists

This commit is contained in:
Eelco Dolstra 2020-10-26 20:37:11 +01:00
parent 14aecbb288
commit 731edf0d9b

View file

@ -208,7 +208,8 @@ bool Value::isTrivial() const
&& (type != tThunk
|| (dynamic_cast<ExprAttrs *>(thunk.expr)
&& ((ExprAttrs *) thunk.expr)->dynamicAttrs.empty())
|| dynamic_cast<ExprLambda *>(thunk.expr));
|| dynamic_cast<ExprLambda *>(thunk.expr)
|| dynamic_cast<ExprList *>(thunk.expr));
}