diff options
author | Silvan Mosberger <contact@infinisil.com> | 2020-12-12 02:09:10 +0100 |
---|---|---|
committer | Silvan Mosberger <contact@infinisil.com> | 2020-12-12 03:31:48 +0100 |
commit | 22ead43a0b8f94f5a4fb64cff14bf6a2a35d671c (patch) | |
tree | d2262f82e8e1032fa285a2ad6ad87f876feb93f7 /src/libexpr/attr-path.cc | |
parent | 9f056f7afdb85b8c3bd59638197e356f269129b2 (diff) |
Use Value::normalType on all forced values instead of Value::type
Diffstat (limited to 'src/libexpr/attr-path.cc')
-rw-r--r-- | src/libexpr/attr-path.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/attr-path.cc b/src/libexpr/attr-path.cc index 83854df49..54e13e6a2 100644 --- a/src/libexpr/attr-path.cc +++ b/src/libexpr/attr-path.cc @@ -67,7 +67,7 @@ std::pair<Value *, Pos> findAlongAttrPath(EvalState & state, const string & attr if (apType == apAttr) { - if (v->type != tAttrs) + if (v->normalType() != nAttrs) throw TypeError( "the expression selected by the selection path '%1%' should be a set but is %2%", attrPath, |