File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 379379 type-hint-config)))
380380 (is (= 3 (sci/eval-string " (def ^java.util.concurrent.ExecutorService thread-pool (java.util.concurrent.Executors/newCachedThreadPool))
381381 @(java.util.concurrent.ExecutorService/.submit thread-pool ^Callable (fn [] 3))"
382- type-hint-config)))))
382+ type-hint-config)))
383+ (is (nil? (sci/eval-string " (def ^java.util.concurrent.ExecutorService thread-pool (java.util.concurrent.Executors/newCachedThreadPool))
384+ @((identity ^[Runnable] java.util.concurrent.ExecutorService/.submit) thread-pool (fn [] 3))"
385+ type-hint-config)))
386+ (is (= 3 (sci/eval-string " (def ^java.util.concurrent.ExecutorService thread-pool (java.util.concurrent.Executors/newCachedThreadPool))
387+ @((identity ^[Callable] java.util.concurrent.ExecutorService/.submit) thread-pool (fn [] 3))"
388+ type-hint-config)))))
383389 (testing " type hint on interop argument"
384390 ; ; this test assumes clojure/core.clj comes from a jar file
385391 ; ; the test will fail when not processing the type hint on the interop argument
You can’t perform that action at this time.
0 commit comments