Fix bug where compound types were not permitted as return values in defcfn

This commit is contained in:
Joshua Suskalo 2021-10-04 19:20:55 -05:00
parent 88b2a72f07
commit 96f3153c5f
2 changed files with 2 additions and 1 deletions

View file

@ -6,6 +6,7 @@ All notable changes to this project will be documented in this file. This change
- An `address?` predicate - An `address?` predicate
### Fixed ### Fixed
- Compound types were not allowed as return types in `defcfn`
- `nil` was not considered a null pointer - `nil` was not considered a null pointer
- Primitive-serializing types fail to compile as arguments to downcall handles - Primitive-serializing types fail to compile as arguments to downcall handles
- Primitive-serializing types fail to load as arguments to upcall functions - Primitive-serializing types fail to load as arguments to upcall functions

View file

@ -504,7 +504,7 @@
(s/or :string string? (s/or :string string?
:symbol simple-symbol?)) :symbol simple-symbol?))
:native-arglist (s/coll-of ::mem/type :kind vector?) :native-arglist (s/coll-of ::mem/type :kind vector?)
:return-type qualified-keyword? :return-type ::mem/type
:wrapper (s/? :wrapper (s/?
(s/cat (s/cat
:native-fn simple-symbol? :native-fn simple-symbol?