parent
784720a7ef
commit
47ce24f680
3 changed files with 26 additions and 2 deletions
16
tests/js/t12303.nim
Normal file
16
tests/js/t12303.nim
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
discard """
|
||||
output: "{ b: 2 }"
|
||||
"""
|
||||
|
||||
import jsconsole, jsffi
|
||||
|
||||
type
|
||||
A = ref object
|
||||
b: B
|
||||
|
||||
B = object
|
||||
b: int
|
||||
|
||||
var a = cast[A](js{})
|
||||
a.b = B(b: 2)
|
||||
console.log a.b
|
||||
Loading…
Add table
Add a link
Reference in a new issue