swiftlang/swift-java

[JExtract] Support `typealias`

Opened this issue · 1 comments

public struct Bytes {
  public typealias Element = Int8
  public func append(_ element: Element)
}

Bytes.append(_:) should be translated to void append(java.lang.Byte element)

To do that JExtract should support typealias declaration.

This should also fix this:

// FIXME: Support 'typealias Void = ()'
public struct Void {}