Skip to content

Commit 7397696

Browse files
committed
Add initial support for Erlang/OTP 28 (thanks to Alexey Shchepin)
1 parent da02c5b commit 7397696

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

rebar.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
{erl_opts, [debug_info,
2424
nowarn_export_all,
25+
{platform_define, "^(1|20|21|22|23|24|25|26|27)", 'OTP_RELEASE_MINOR_28'},
2526
{platform_define, "^(1|20|21|22|23|24)", 'OTP_RELEASE_MINOR_25'},
2627
{platform_define, "^(1|20|21|22|23)", 'OLD_DIALYZER_NO_FILENAMES'},
2728
{platform_define, "^(15|16|17|18)", 'HAVE_REMOTE_TYPES'},

src/fxml_gen.erl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4219,11 +4219,17 @@ t_from_form(Spec) ->
42194219
-endif.
42204220
-endif.
42214221

4222+
-ifdef(OTP_RELEASE_MINOR_28).
42224223
t_remote(Mod, Type) ->
42234224
D = dict_from_list([{{opaque, Type, []},
42244225
{{Mod, 1, 2, []}, type}}]),
42254226
[T] = erl_types:t_opaque_from_records(D),
42264227
T.
4228+
-else.
4229+
t_remote(Mod, Type) ->
4230+
erl_types:t_nominal({Mod, Type, 0, opaque}, opaque).
4231+
-endif.
4232+
42274233
-endif.
42284234

42294235
-ifdef(USE_DICT).

0 commit comments

Comments
 (0)