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
/** Creates a ControlWrapper which wraps the given control. */
classTransparent<T:Control>(
overridevalrootControl:T
) : ControlWrapper
companionobject {
/** Most-efficient way to transparently pass a Control to a ControlWrapper API. */
@JvmStatic
fun <T:Control> transparent(control:T): Transparent<T> {
returnTransparent(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.
The text was updated successfully, but these errors were encountered:
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
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 bothtransparent
andTransparent
, and it's an accident that both methods exist at all.The text was updated successfully, but these errors were encountered: