diff --git a/example/dub.sdl b/example/dub.sdl index 74d6a03..6737c76 100644 --- a/example/dub.sdl +++ b/example/dub.sdl @@ -1,4 +1,4 @@ name "sslltest" dependency "ssll" path=".." -dflags "-betterC" "-preview=dip25" "-preview=dip1000" "-preview=dip1008" +dflags "-betterC" "-preview=dip1000" "-preview=dip1008" #subConfiguration "ssll" "check-loading-symbols-on-call" \ No newline at end of file diff --git a/source/ssll.d b/source/ssll.d index 75c7d6c..2da9231 100644 --- a/source/ssll.d +++ b/source/ssll.d @@ -158,7 +158,11 @@ template funcsByUDA(alias symbol, uda) { template impl(lst...) { - static if (lst.length == 1) + static if (lst.length == 0) + { + alias impl = AliasSeq!(); + } + else static if (lst.length == 1) { static if (is(typeof(__traits(getMember, symbol, lst[0])) == function)) {