diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-10-26 20:37:11 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-10-26 20:37:11 +0100 |
commit | 731edf0d9be27d1a64c9645595c7efba31dde2b1 (patch) | |
tree | 652ce64af996a368c540269810004517b8f7e160 /src | |
parent | 14aecbb288b71bbb79ddca638918318c9298200b (diff) |
isTrivial(): Support trivial lists
Diffstat (limited to 'src')
-rw-r--r-- | src/libexpr/eval.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index d6366050c..4de87d647 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -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)); } |