durian-swt icon indicating copy to clipboard operation
durian-swt copied to clipboard

Case issue with `Transparent`?

Open nedtwigg opened this issue 1 year ago • 0 comments
trafficstars

It seems like Kotlin has a case-insensitivity bug.

https://github.com/diffplug/durian-swt/blob/f1b1e6306b6b0ac93f4e3186c92c1bbfc314d5b4/durian-swt/src/main/java/com/diffplug/common/swt/ControlWrapper.kt#L114-L125

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.

nedtwigg avatar Jul 05 '24 20:07 nedtwigg