diff --git a/test/babashka/interop_test.clj b/test/babashka/interop_test.clj index 94d03aae..fa7cab3e 100644 --- a/test/babashka/interop_test.clj +++ b/test/babashka/interop_test.clj @@ -247,4 +247,8 @@ (is (= 3 (bb nil "(import '(java.util.concurrent Executors ExecutorService)) (let [fut (.submit ^ExecutorService (Executors/newCachedThreadPool) ^Callable (fn [] 3))] - (.get fut))")))) + (.get fut))"))) + (is (nil? (bb nil "(import '(java.util.concurrent Executors ExecutorService)) + (let [fut (.submit ^ExecutorService (Executors/newCachedThreadPool) + ^Runnable (fn [] 3))] + (.get fut))"))))