Skip to content

CObj: extern functions can't return abstract classes. #3

@lolgab

Description

@lolgab

When an extern function have as return type an abstract type, the macro tries to instantiate it, resulting in a compile error.
Example with GtkBuilder:

@CObj
class GtkBuilder {
  def getObject(name: CString): GObject = extern
}
[error] [E1] src/main/scala/GtkBuilder.scala
[error]      class GObject is abstract; cannot be instantiated
[error]      L6:@CObj

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions