diff options
author | Robert Hensing <robert@roberthensing.nl> | 2024-02-04 18:09:51 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2024-04-04 11:54:46 +0200 |
commit | 1465777b63d38988d5ecd81683d2975321e59d1a (patch) | |
tree | 715bb4968c6cce5fb4d113fc87614b82c08dde57 /lib/tests/modules | |
parent | bcd774606a257fd6f14bda50effac67474005447 (diff) |
lib.types.attrTag: Custom error when passing bare type
Diffstat (limited to 'lib/tests/modules')
-rw-r--r-- | lib/tests/modules/types-attrTag-wrong-decl.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/tests/modules/types-attrTag-wrong-decl.nix b/lib/tests/modules/types-attrTag-wrong-decl.nix new file mode 100644 index 0000000000000..d03370bc10da4 --- /dev/null +++ b/lib/tests/modules/types-attrTag-wrong-decl.nix @@ -0,0 +1,14 @@ +{ lib, ... }: +let + inherit (lib) types mkOption; +in +{ + options = { + opt = mkOption { + type = types.attrTag { + int = types.int; + }; + default = { int = 1; }; + }; + }; +} |