Kotlin: unresolved reference

Intellij 2016.2.5, Kotlin 1.1 M2

I keep getting:

Error:(14, 20) Kotlin: Unresolved reference: register

import com.sun.jna.*
class OpenVR : Library {
    companion object {
        init {
            Native.register(NativeLibrary.getInstance("openvr_api"))
        }
    }
}

I already tried to invalidate cache and restart, it didn’t help…

Any tips?

I guess I found the bug, it’s the import *, because this compile flawness…

import com.sun.jna.Library
import com.sun.jna.Native
import com.sun.jna.Pointer
import com.sun.jna.Structure
import com.sun.jna.NativeLibrary

class OpenVR : Library {
    companion object {
        init {
            Native.register(NativeLibrary.getInstance("openvr_api"))
        }
    }
}

I am gonna file a bug