mirror of
https://github.com/oxalica/nil.git
synced 2025-12-23 09:19:49 +00:00
assists/inline: add negative test for patfield
This commit is contained in:
parent
5cf51e1433
commit
4bef45187d
1 changed files with 17 additions and 0 deletions
|
|
@ -162,4 +162,21 @@ mod tests {
|
|||
);
|
||||
check_no("let $0foo = 1; in { inherit foo; }");
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn no_patfield() {
|
||||
check_no(
|
||||
r#"
|
||||
{
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
$0flake-utils,
|
||||
}: {
|
||||
inherit flake-utils;
|
||||
};
|
||||
}
|
||||
"#,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue