blob: 58079e172d3b1c7d4d20733f17e7bbad9642722a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
(import java.lang.System)
(require "./another" as another)
(ann-class java.lang.String)
(ann-class java.io.PrintStream
methods
(: println (-> [java.lang.String] Void)))
(ann-class java.lang.System
fields
(: out java.io.PrintStream))
(defclass Tagged [[java.lang.String tag] [java.lang.Object value]])
(definterface Function
(: apply (-> [java.lang.Object] java.lang.Object)))
(def const "IDENTITY")
(def sample (#Tag "value"))
(def (constant x y)
y)
(def (main args)
(if true
(_. (_.. System out) (println (constant "TRUE" "YOLO")))
(_. (_.. System out) (println "FALSE"))))
|