From 648130f548815a1be17c08291a717ef4340ad9bd Mon Sep 17 00:00:00 2001 From: ieQu1 <99872536+ieQu1@users.noreply.github.com> Date: Sun, 14 Jan 2024 18:19:05 +0100 Subject: [PATCH] ci: Run on OTP 26 --- .github/workflows/ci.yml | 2 +- src/typerefl.erl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5964711..4f9ecc2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - otp: [25.1, 21.3.8.21] + otp: [26.1, 21.3.8.21] container: image: erlang:${{ matrix.otp }} diff --git a/src/typerefl.erl b/src/typerefl.erl index 61bff4a..873c6b2 100644 --- a/src/typerefl.erl +++ b/src/typerefl.erl @@ -28,7 +28,7 @@ %% Special types that should not be imported: -export([node/0, union/2, union/1, tuple/1, range/2]). --export_type([type/0, check_result/0, result/0, typename/0, err/0]). +-export_type([type/0, check_result/0, result/0, typename/0, err/0, thunk/1]). -type err() :: map(). @@ -838,7 +838,7 @@ string_to_term(String) -> {error, "Unable to tokenize Erlang term"} end. --spec re_match(string() | binary(), re:mp()) -> boolean(). +-spec re_match(string() | binary(), _RE) -> boolean(). re_match(Str, RE) -> try re:run(Str, RE, [{capture, none}]) of match -> true;