Open 9999years opened 9 months ago
Similarly, if there already exists an inherit
statement, the added inherit
s aren't combined into it:
let
config = {
host = "host";
user = "user";
port = 22;
options = "";
};
in {
inherit (config) options;
host = config.host;
user = config.user;
port = config.port;
}
With this code:
statix
correctly identifies that these assignments could beinherit
statements instead:But it creates three
inherit
statements when I runstatix fix
, rather than one:Expected
Version