From abb98b54dffc61f7790cbf3540e5293c7eb2ced3 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Fri, 20 Mar 2020 14:08:31 -0400 Subject: [PATCH] fix #246 --- jni.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jni.d b/jni.d index cd3d3be..76db786 100644 --- a/jni.d +++ b/jni.d @@ -1240,7 +1240,7 @@ private enum ImportImplementationString = q{ auto len = (*env).GetStringLength(env, jret); auto ptr = (*env).GetStringChars(env, jret, null); - static if(is(T == wstring)) { + static if(is(typeof(return) == wstring)) { if(ptr !is null) { ret = ptr[0 .. len].idup; (*env).ReleaseStringChars(env, jret, ptr);