https://kotlinlang.org logo
Title
d

DALDEI

10/16/2018, 8:42 PM
public interface JavaDup
{
 // public String a ;
  public String getA();//{ return a ; }
  public void setA(String a) ;//{ a=_a;}
}
----- kotlin
import util.JavaDup

class B : JavaDup {
  override var a : String = "hi"
}
k

karelpeeters

10/16/2018, 8:52 PM
https://youtrack.jetbrains.net/issue/KT-6653, one of the most requested features.
And for next time, surround code with ```
h

hho

10/17/2018, 8:44 AM
or, even better, use snippets (the left of the input text box) – you could set filenames and correct syntax highlighting there.