You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thread: #377 (comment)
`inherit x y` in y` position always takes a variable name.
Nix allows `inherit x "y"`, but there is no use (in the wild real life use) for
it, it seems a misfeature and would be considered a quirk of the original type
system/implementation, until the use case of it would be clear (which is hard,
since there is a single use of it in Nixpkgs, which is mentioned in the thread).
Copy file name to clipboardExpand all lines: src/Nix/Expr/Types.hs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -393,7 +393,7 @@ data Binding r
393
393
--^ An explicit naming.
394
394
--
395
395
-- > NamedVar (StaticKey "x" :| [StaticKey "y"]) z SourcePos{} ~ x.y = z;
396
-
| Inherit!(Mayber) ![NKeyNamer] !SourcePos
396
+
| Inherit!(Mayber) ![VarName] !SourcePos
397
397
--^ Inheriting an attribute (binding) into the attribute set from the other scope (attribute set). No denoted scope means to inherit from the closest outside scope.
0 commit comments