This commit is contained in:
cooldome 2020-11-09 10:47:29 +00:00 • committed by GitHub
commit 7b19217798
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 36 additions and 12 deletions

View file

@ -34,3 +34,17 @@ echo x
import std/os
discard getFileInfo(".")
#------------------------------------------------------------------------------
# Issue #15707
#------------------------------------------------------------------------------
type
JVMObject = ref object
proc freeJVMObject(o: JVMObject) =
discard
proc fromJObject(T: typedesc[JVMObject]): T =
result.new(cast[proc(r: T) {.nimcall.}](freeJVMObject))
discard JVMObject.fromJObject()