johnzeringue
05/21/2016, 5:29 AMpackage example
interface Fizz {
fun example(): String
}
open class Buzz : Fizz {
override fun example() = System.lineSeparator()
}
class Wat : Buzz() {
override fun example(): String? = null
}
On my machine this compiles in both IntelliJ and from the command line.