File tree 2 files changed +7
-0
lines changed
test/clojure/test_clojure
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1375,6 +1375,8 @@ static Class maybeJavaClass(Collection<Expr> exprs){
1375
1375
if (!e .hasJavaClass ())
1376
1376
return null ;
1377
1377
Class c = e .getJavaClass ();
1378
+ if (c == null )
1379
+ return null ;
1378
1380
if (match == null )
1379
1381
match = c ;
1380
1382
else if (match != c )
Original file line number Diff line number Diff line change 438
438
(is (= 42 (compilation.JDK8InterfaceMethods/staticMethod0 42 )))
439
439
(is (= " test" (compilation.JDK8InterfaceMethods/staticMethod1 " test" )))
440
440
(is (= 1 (if (compilation.JDK8InterfaceMethods/staticMethod2 true ) 1 2 )))))
441
+
442
+ (deftest CLJ-2580
443
+ (testing " CLJ-2580 Correctly calculate exit branches of case"
444
+ (is (zero? (let [d (case nil :x nil 0 )] d)))
445
+ (is (nil? (let [d (case nil :x 0 nil )] d)))))
You can’t perform that action at this time.
0 commit comments