What's wrong with this interface declaration


package somepackage

public interface Intf {
  fun a() : Long?

in Idea - “interface” keyword highlighted red as “unresolved reference: interface”

in compiler:

Expecting a top level declaration

replacing “interface” with “trait” makes the code compilable

Kotlin plugin version: 0.11.91.AndroidStudio.4


'trait' keyword was replaced with 'interface' only in Kotlin 0.12.+


how can I upgrade the plugin to 0.12?

I use IDEA 13.1.6


You have to upgrade your IntelliJ IDEA as well. New versions of the Kotlin plugin require IntelliJ IDEA 14.1.