File 5993-Fix-type.patch of Package erlang
From 052d2cfae2e7c815aeca08c92960720f8b7d9535 Mon Sep 17 00:00:00 2001
From: Raimo Niskanen <raimo@erlang.org>
Date: Sat, 10 Sep 2022 12:30:50 +0200
Subject: [PATCH 3/4] Fix type
---
lib/stdlib/src/gen_statem.erl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/stdlib/src/gen_statem.erl b/lib/stdlib/src/gen_statem.erl
index a206df4b77..957879ff65 100644
--- a/lib/stdlib/src/gen_statem.erl
+++ b/lib/stdlib/src/gen_statem.erl
@@ -445,7 +445,7 @@ timeout_event_type(Type) ->
{callback_mode = state_functions :: callback_mode(),
state_enter = false :: boolean(),
parent :: pid(),
- modules = [] :: [module()],
+ modules = [?MODULE] :: nonempty_list(module()),
name :: atom() | pid(),
hibernate_after = infinity :: timeout()
}).
--
2.35.3