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
class Outer
{
interface Listener
{
fun onEvent()
}
}
generates correct nesting for java, but not swift. Listener protocol is generated as if it were not nested, with the name "Listener".
Currently, swift doesn't seem to support nested protocols. This may change in the future. But, even now, there may be a workaround. Maybe the above definition could generate something like this in swift:
public protocol OuterListener : AnyObject {
...
}
public class Outer {
typealias Listener = OuterListener
}
The text was updated successfully, but these errors were encountered:
definition:
generates correct nesting for java, but not swift. Listener protocol is generated as if it were not nested, with the name "Listener".
Currently, swift doesn't seem to support nested protocols. This may change in the future. But, even now, there may be a workaround. Maybe the above definition could generate something like this in swift:
The text was updated successfully, but these errors were encountered: