IntelliJ show a green box for a source file, howev...
# intellij
n
IntelliJ show a green box for a source file, however during actual compilation a error occurs, with the message mentioning that the types have to be specified explicitly (for the linuxX64, and linuxArm32 modules). Below is the contents of the source file where compilation fails (on
_gtkWidgetPtr?.reinterpret()
):
Copy code
// ...

actual open class AppWindow(private val app: GuiApplication) : WindowBase {
    private var _gtkWidgetPtr: CPointer<GtkWidget>? = null
    override val gtkWidgetPtr: CPointer<GtkWidget>?
        get() = _gtkWidgetPtr?.reinterpret()
    val gtkAppWinPtr: CPointer<GtkApplicationWindow>?
        get() = _gtkWidgetPtr?.reinterpret()
    override val gtkWindowPtr: CPointer<GtkWindow>? by lazy {
        _gtkWidgetPtr?.reinterpret()
    }
    // ...
}
a
This is probably new inference in IDE. To make the error appear in IDE also, turn new inference off in "File | Settings | Build, Execution, Deployment | Compiler | Kotlin Compiler"