Hello, World. I'm trying to build an IntelliJ pl...
# announcements
b
Hello, World. I'm trying to build an IntelliJ plugin in Kotlin, and I'm having a weird compilation error:
Copy code
e: /Users/bod/gitrepo/testo/src/main/kotlin/org/jraf/intellijplugin/nyantray/Tray.kt: (44, 39): Cannot choose among the following candidates without completing type inference: 
public fun <T> lazy(initializer: () -> ???): Lazy<???> defined in kotlin
public fun <T> lazy(initializer: () -> ???): Lazy<???> defined in kotlin
This is on a good old regular
by lazy
property...
Copy code
private val trayIcon: TrayIcon by lazy {
        TrayIcon( ... )
    }
Also it's not red in the editor. Any idea?
🤔 1