diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2869066..1236ec1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -61,8 +61,6 @@ jobs: - nightly - 4.3.6 - 4.2.5 - - 4.1.5 - - 4.0.5 with: haxe-reusable-workflows-version: dev diff --git a/README.md b/README.md index 2c3809c..9030f9e 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ within FlashDevelop. |0.1.0 to 1.1.4 |3.2.1 or higher| |1.2.0 to 2.0.1 |3.4.2 or higher| |3.0.0 or higher |4.0.5 or higher| +|3.3.0 or higher |4.2.0 or higher| ## Declaring test assertions diff --git a/src/hx/doctest/internal/Macros.hx b/src/hx/doctest/internal/Macros.hx index c15744e..21f7b5f 100644 --- a/src/hx/doctest/internal/Macros.hx +++ b/src/hx/doctest/internal/Macros.hx @@ -14,23 +14,17 @@ import haxe.macro.*; @:noCompletion class Macros { - #if (haxe_ver < 4) + #if (haxe_ver < 4.2) static var __static_init(default, never) = { - throw '[ERROR] As of haxe-doctest 3.0.0, Haxe 4.x or higher is required!'; + throw '[ERROR] Haxe 4.2 or higher is required!'; }; #end macro // public static function configureNullSafety() { - #if (haxe_ver >= 4) - haxe.macro.Compiler.nullSafety("hx.doctest", - #if (haxe_ver < 4.1) - Strict // Haxe 4.x does not have StrictThreaded - #else - StrictThreaded - #end - ); + #if (haxe_ver >= 4.2) + haxe.macro.Compiler.nullSafety("hx.doctest", StrictThreaded); #end return macro {} }