Noticed both with your libraries test of itself with tink setup and with one of my using utest that haxe-doctest is failing on haxe4.2 ( I downloaded early version of haxe4.2 for the module-statics ). (Normal dox is working as set that up without any issue).
For instance for this lib which only has two tests.
https://github.com/nanjizal/dsHelper
I get the following message after scanning..
/usr/local/lib/haxeLibrary/haxe-doctest/git/src/hx/doctest/DocTestGenerator.hx:386: [INFO] Generated 2 test assertions.
/usr/local/lib/haxeLibrary/haxe-doctest/git/src/hx/doctest/internal/adapters/UTestDocTestAdapter.hx:40: characters 31-40 : Unknown identifier : assertion
/usr/local/lib/haxeLibrary/haxe-doctest/git/src/hx/doctest/internal/adapters/UTestDocTestAdapter.hx:40: characters 31-40 : For optional function argument 'msg'
src/dsHelper/TestdsHelper.hx:15: lines 15-25 : Defined in this class
/usr/local/lib/haxeLibrary/haxe-doctest/git/src/hx/doctest/internal/adapters/UTestDocTestAdapter.hx:32: characters 31-40 : Unknown identifier : assertion
/usr/local/lib/haxeLibrary/haxe-doctest/git/src/hx/doctest/internal/adapters/UTestDocTestAdapter.hx:32: characters 31-40 : For optional function argument 'msg'
src/dsHelper/TestdsHelper.hx:15: lines 15-25 : Defined in this class
/usr/local/lib/haxeLibrary/haxe-doctest/git/src/hx/doctest/internal/adapters/UTestDocTestAdapter.hx:40: characters 31-40 : Unknown identifier : assertion
/usr/local/lib/haxeLibrary/haxe-doctest/git/src/hx/doctest/internal/adapters/UTestDocTestAdapter.hx:40: characters 31-40 : For optional function argument 'msg'
src/dsHelper/TestdsHelper.hx:15: lines 15-25 : Defined in this class
/usr/local/lib/haxeLibrary/haxe-doctest/git/src/hx/doctest/internal/adapters/UTestDocTestAdapter.hx:32: characters 31-40 : Unknown identifier : assertion
/usr/local/lib/haxeLibrary/haxe-doctest/git/src/hx/doctest/internal/adapters/UTestDocTestAdapter.hx:32: characters 31-40 : For optional function argument 'msg'
src/dsHelper/TestdsHelper.hx:15: lines 15-25 : Defined in this class