blob: f248c3d0d8cb054a4e28eec805f18a0614d6db2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
(module)
(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 data]])
#( (ann id #type (All [x] (-> [x] x))) )#
(def (id x)
x)
(def (main args)
(if true
(_. (_.. java.lang.System out) (println (id "YOLO")))
(_. (_.. java.lang.System out) (println "FALSE"))))
|