From 832c01ad87debaea622cac858b8f12819d16155e Mon Sep 17 00:00:00 2001 From: logikgate Date: Mon, 12 Apr 2021 19:40:43 -0400 Subject: [PATCH] fix: handle methods with pointer type params fixes #109 --- NativeScript/runtime/ClassBuilder.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NativeScript/runtime/ClassBuilder.mm b/NativeScript/runtime/ClassBuilder.mm index f24ef8ab..ebedae1e 100644 --- a/NativeScript/runtime/ClassBuilder.mm +++ b/NativeScript/runtime/ClassBuilder.mm @@ -466,6 +466,8 @@ return pdw->TypeEncoding()->type; } else if (wrapper->Type() == WrapperType::ObjCObject) { return BinaryTypeEncodingType::IdEncoding; + } else if (wrapper->Type() == WrapperType::PointerType) { + return BinaryTypeEncodingType::PointerEncoding; } }