Skip to content

Case issue with Transparent? #28

Open
@nedtwigg

Description

@nedtwigg

It seems like Kotlin has a case-insensitivity bug.

/** Creates a ControlWrapper which wraps the given control. */
class Transparent<T : Control>(
override val rootControl: T
) : ControlWrapper
companion object {
/** Most-efficient way to transparently pass a Control to a ControlWrapper API. */
@JvmStatic
fun <T : Control> transparent(control: T): Transparent<T> {
return Transparent(control)
}
}

This code used to be java, and it had the same bug. I switched it to Kotlin to try to fix it.

When called from a Kotlin compiler, I get this error: Unresolved reference 'transparent'. Interestingly, I get this error with both transparent and Transparent, and it's an accident that both methods exist at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions