Skip to content

Commit 4c81ae6

Browse files
committed
wip
1 parent 74c4af3 commit 4c81ae6

2 files changed

Lines changed: 48 additions & 2 deletions

File tree

build.clj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
(ns build
2-
(:require [clojure.tools.build.api :as b]))
2+
(:require
3+
[clojure.tools.build.api :as b]))
4+
5+
(def basis
6+
(b/create-basis {:project "deps.edn"}))
37

48
(defn compile-test-java [_]
59
(b/javac {:src-dirs ["src/test/java"]
6-
:class-dir "target/test-classes"}))
10+
:class-dir "target/test-classes"
11+
:basis basis}))
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
package clojure.tools.analyzer.jvm.test;
2+
3+
import clojure.lang.AFn;
4+
import clojure.lang.IFn;
5+
6+
public class Foo {
7+
8+
public static final IFn bar = new AFn() {
9+
public Object invoke() {
10+
return "bar";
11+
}
12+
public Object invoke(Object x) {
13+
return "bar" + x.toString();
14+
}
15+
};
16+
17+
public static final IFn baz = new AFn() {
18+
public Object invoke() {
19+
return "baz";
20+
}
21+
public Object invoke(Object x) {
22+
return "baz" + x.toString();
23+
}
24+
};
25+
26+
public static String bar() {
27+
return "bar()";
28+
}
29+
public static String bar(Object x) {
30+
return "bar()" + x.toString();
31+
}
32+
33+
34+
public static String qux() {
35+
return "qux()";
36+
}
37+
public static String qux(Object x) {
38+
return "qux()" + x.toString();
39+
}
40+
41+
}

0 commit comments

Comments
 (0)