You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
r] illegal cyclic typereference: alias scala.scalanative.unsafe.Ptr[ft.structs.FT_ListNodeRec_] of typeFT_ListNode refers back to the typeitself
[error]
[error] Runwith-explain-cyclic for more details.
[error] opaquetypeFT_ListNode=Ptr[FT_ListNodeRec_]
[error] ^
[error] /var/folders/jr/4vy422xj6zs44hsn5d1_b4g40000gn/T/15695818354923484461/.scala-build/15695818354923484461_12528d1359-a97710677f/src_generated/main/stdin.scala:16:36
[error] Found: scala.scalanative.unsafe.Tag.Ptr[ft.structs.FT_ListNodeRec_]
[error] Required: scala.scalanative.unsafe.Tag[ft.aliases.FT_ListNode]
[error] given_tag:Tag[FT_ListNode] =Tag.Ptr[FT_ListNodeRec_](FT_ListNodeRec_._tag)
[error] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] /var/folders/jr/4vy422xj6zs44hsn5d1_b4g40000gn/T/15695818354923484461/.scala-build/15695818354923484461_12528d1359-a97710677f/src_generated/main/stdin.scala:19:48
[error] Found: (v : ft.aliases.FT_ListNode)
[error] Required: scala.scalanative.unsafe.Ptr[ft.structs.FT_ListNodeRec_]
[error] inlinedefvalue:Ptr[FT_ListNodeRec_] = v
[error] ^
[error] /var/folders/jr/4vy422xj6zs44hsn5d1_b4g40000gn/T/15695818354923484461/.scala-build/15695818354923484461_12528d1359-a97710677f/src_generated/main/stdin.scala:72:3
[error] exports are only allowed from objects and classes, they can not belong to local blocks
[error] export_root_.ft.structs.FT_ListNodeRec
[error] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[error] /var/folders/jr/4vy422xj6zs44hsn5d1_b4g40000gn/T/15695818354923484461/.scala-build/15695818354923484461_12528d1359-a97710677f/src_generated/main/stdin.scala:73:3
[error] exports are only allowed from objects and classes, they can not belong to local blocks
[error] export_root_.ft.structs.FT_ListNodeRec_
[error] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^Error compiling project (Scala3.4.1, ScalaNative0.5.1)
Here's the code generated by 0.1.4
packageftimport_root_.scala.scalanative.unsafe.*import_root_.scala.scalanative.unsigned.*import_root_.scala.scalanative.libc.*import_root_.scala.scalanative.*objectaliases:import_root_.ft.aliases.*import_root_.ft.structs.*/** * [bindgen] header: repro.h*/opaquetypeFT_ListNode=Ptr[FT_ListNodeRec_]
objectFT_ListNode:given_tag:Tag[FT_ListNode] =Tag.Ptr[FT_ListNodeRec_](FT_ListNodeRec_._tag)
inlinedefapply(inlineo: Ptr[FT_ListNodeRec_]):FT_ListNode= o
extension (v: FT_ListNode)
inlinedefvalue:Ptr[FT_ListNodeRec_] = v
objectstructs:import_root_.ft.aliases.*import_root_.ft.structs.*/** * [bindgen] header: repro.h*/opaquetypeFT_ListNodeRec=CStruct3[FT_ListNode, FT_ListNode, Ptr[Byte]]
objectFT_ListNodeRec:given_tag:Tag[FT_ListNodeRec] =Tag.materializeCStruct3Tag[FT_ListNode, FT_ListNode, Ptr[Byte]]
defapply()(usingZone):Ptr[FT_ListNodeRec] = scala.scalanative.unsafe.alloc[FT_ListNodeRec](1)
defapply(prev : FT_ListNode, next : FT_ListNode, data : Ptr[Byte])(usingZone):Ptr[FT_ListNodeRec] =val____ptr= apply()
(!____ptr).prev = prev
(!____ptr).next = next
(!____ptr).data = data
____ptr
extension (struct: FT_ListNodeRec)
defprev:FT_ListNode= struct._1
defprev_=(value: FT_ListNode):Unit=!struct.at1 = value
defnext:FT_ListNode= struct._2
defnext_=(value: FT_ListNode):Unit=!struct.at2 = value
defdata:Ptr[Byte] = struct._3
defdata_=(value: Ptr[Byte]):Unit=!struct.at3 = value
/** * [bindgen] header: repro.h*/opaquetypeFT_ListNodeRec_=CStruct3[FT_ListNode, FT_ListNode, Ptr[Byte]]
objectFT_ListNodeRec_:given_tag:Tag[FT_ListNodeRec_] =Tag.materializeCStruct3Tag[FT_ListNode, FT_ListNode, Ptr[Byte]]
defapply()(usingZone):Ptr[FT_ListNodeRec_] = scala.scalanative.unsafe.alloc[FT_ListNodeRec_](1)
defapply(prev : FT_ListNode, next : FT_ListNode, data : Ptr[Byte])(usingZone):Ptr[FT_ListNodeRec_] =val____ptr= apply()
(!____ptr).prev = prev
(!____ptr).next = next
(!____ptr).data = data
____ptr
extension (struct: FT_ListNodeRec_)
defprev:FT_ListNode= struct._1
defprev_=(value: FT_ListNode):Unit=!struct.at1 = value
defnext:FT_ListNode= struct._2
defnext_=(value: FT_ListNode):Unit=!struct.at2 = value
defdata:Ptr[Byte] = struct._3
defdata_=(value: Ptr[Byte]):Unit=!struct.at3 = value
objecttypes:export_root_.ft.structs.*export_root_.ft.aliases.*objectall:export_root_.ft.aliases.FT_ListNodeexport_root_.ft.structs.FT_ListNodeRecexport_root_.ft.structs.FT_ListNodeRec_
The text was updated successfully, but these errors were encountered:
This was surprising:
Generated code doesn't compile:
Here's the code generated by 0.1.4
The text was updated successfully, but these errors were encountered: