From dda9e7b3f998e7649104d478469b8a27c3c981ba Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Fri, 5 May 2017 18:33:59 -0400 Subject: - Fixed a bug when compiling array-get, by just having it assume Object[] for all arrays. --- luxc/src/lux/compiler/jvm/proc/common.clj | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'luxc/src') diff --git a/luxc/src/lux/compiler/jvm/proc/common.clj b/luxc/src/lux/compiler/jvm/proc/common.clj index efb7364a3..b616f4bdf 100644 --- a/luxc/src/lux/compiler/jvm/proc/common.clj +++ b/luxc/src/lux/compiler/jvm/proc/common.clj @@ -37,9 +37,8 @@ ;; (&/$Nil) special-args ] ^MethodVisitor *writer* &/get-writer - array-type (&host/->java-sig (&a/expr-type* ?array)) _ (compile ?array) - :let [_ (.visitTypeInsn *writer* Opcodes/CHECKCAST array-type)] + :let [_ (.visitTypeInsn *writer* Opcodes/CHECKCAST "[Ljava/lang/Object;")] _ (compile ?idx) :let [_ (doto *writer* &&/unwrap-long -- cgit v1.2.3