aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/target/jvm/reflection.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/library/lux/target/jvm/reflection.lux6
1 files changed, 4 insertions, 2 deletions
diff --git a/stdlib/source/library/lux/target/jvm/reflection.lux b/stdlib/source/library/lux/target/jvm/reflection.lux
index 98896184c..fd3900ee6 100644
--- a/stdlib/source/library/lux/target/jvm/reflection.lux
+++ b/stdlib/source/library/lux/target/jvm/reflection.lux
@@ -17,6 +17,8 @@
["[0]" list ("[1]#[0]" mix functor)]
["[0]" array]
["[0]" dictionary]]]
+ [macro
+ ["^" pattern]]
[math
[number
["n" nat]]]]]
@@ -183,7 +185,7 @@
... allow for multiple ones.
(case [(array.read! 0 (java/lang/reflect/WildcardType::getLowerBounds reflection))
(array.read! 0 (java/lang/reflect/WildcardType::getUpperBounds reflection))]
- (^template [<pattern> <kind>]
+ (^.template [<pattern> <kind>]
[<pattern>
(case (ffi.check java/lang/reflect/GenericArrayType bound)
{.#Some it}
@@ -288,7 +290,7 @@
(def: .public (correspond class type)
(-> (java/lang/Class java/lang/Object) Type (Try Mapping))
(case type
- (^ {.#Primitive (static array.type_name) (list :member:)})
+ (pattern {.#Primitive (static array.type_name) (list :member:)})
(if (java/lang/Class::isArray class)
(correspond (java/lang/Class::getComponentType class)
:member:)