-
Couldn't load subscription status.
- Fork 4
Open
Description
It seems like Kotlin has a case-insensitivity bug.
durian-swt/durian-swt/src/main/java/com/diffplug/common/swt/ControlWrapper.kt
Lines 114 to 125 in f1b1e63
| /** 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
Labels
No labels