We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5da21b3 commit 20f3094Copy full SHA for 20f3094
src/jvm/clojure/lang/Compiler.java
@@ -4012,9 +4012,9 @@ else if(methodArray[f.reqParms.count()] == null)
4012
{
4013
for(LocalBinding lb : (Collection<LocalBinding>)RT.keys(fm.locals))
4014
4015
- lb.idx -= 1;
+ if(lb.isArg)
4016
+ lb.idx -= 1;
4017
}
- fm.maxLocal -= 1;
4018
4019
4020
test/clojure/test_clojure/compilation.clj
@@ -356,3 +356,9 @@
356
(is (thrown? RuntimeException (eval '(defn foo [] (throw RuntimeException any-symbol)))))
357
(is (thrown? RuntimeException (eval '(defn foo [] (throw (RuntimeException.) any-symbol)))))
358
(is (var? (eval '(defn foo [] (throw (IllegalArgumentException.)))))))
359
+
360
+(deftest clj-1809
361
+ (is (eval `(fn [y#]
362
+ (try
363
+ (finally
364
+ (let [z# y#])))))))
0 commit comments