aboutsummaryrefslogtreecommitdiff
path: root/lux-bootstrapper
diff options
context:
space:
mode:
authorEduardo Julian2021-06-02 20:07:52 -0400
committerEduardo Julian2021-06-02 20:07:52 -0400
commit52ee6639be048621776527380a1fe7eb51c055ab (patch)
tree6705381dcfd78d218b2e3ef4cfe977d6de40ba94 /lux-bootstrapper
parent19b14056e95bbde2f852c5ce4ed16b36c9f85217 (diff)
Postponing work on R due to flaws of the bootstrapping compiler.
Will resume once the new JVM compiler replaces the bootstrapping compiler.
Diffstat (limited to 'lux-bootstrapper')
-rw-r--r--lux-bootstrapper/src/lux/host/generics.clj7
1 files changed, 7 insertions, 0 deletions
diff --git a/lux-bootstrapper/src/lux/host/generics.clj b/lux-bootstrapper/src/lux/host/generics.clj
index 9e0359760..58986c100 100644
--- a/lux-bootstrapper/src/lux/host/generics.clj
+++ b/lux-bootstrapper/src/lux/host/generics.clj
@@ -144,6 +144,13 @@
(&/$GenericClass name params)
(->bytecode-class-name name)
+ (&/$GenericArray (&/$GenericClass name params))
+ (case name
+ ("void" "boolean" "byte" "short" "int" "long" "float" "double" "char")
+ (str "[" (->type-signature name))
+ ;; else
+ (str "[L" (->bytecode-class-name name) ";"))
+
(&/$GenericArray param)
(str "[" (gclass->class-name param))