Skip to content

Try to get rid of warnings in Java2Swift generated sources: generics #169

Open
@ktoso

Description

@ktoso

We have a lot of noise thanks to these:

 98 | extension TreeMap {
 99 |   @JavaClass("java.util.AbstractMap$SimpleImmutableEntry")
100 |   open class SimpleImmutableEntry<K: AnyJavaObject, V: AnyJavaObject>: JavaObject {
    |                                                     `- warning: generic parameter 'V' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode

it'd be nice to avoid them, e.g. make those V1 or something

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions