From 1465777b63d38988d5ecd81683d2975321e59d1a Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Sun, 4 Feb 2024 18:09:51 +0100 Subject: lib.types.attrTag: Custom error when passing bare type --- lib/tests/modules/types-attrTag-wrong-decl.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lib/tests/modules/types-attrTag-wrong-decl.nix (limited to 'lib/tests/modules') 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; }; + }; + }; +} -- cgit 1.4.1