parent
673c5990c6
commit
7b19217798
4 changed files with 36 additions and 12 deletions
|
|
@ -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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue