File tree Expand file tree Collapse file tree
src/test/java/clojure/tools/analyzer/jvm/test Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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}))
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments