Skip to content

Instantly share code, notes, and snippets.

@erokhins
Created August 19, 2013 17:33
Show Gist options
  • Save erokhins/6271807 to your computer and use it in GitHub Desktop.
Save erokhins/6271807 to your computer and use it in GitHub Desktop.
open class A() {
open fun bar(t: Int = 1) = t
}
class B: A() {
override fun bar(t: Int): Int {
return super.bar()
}
}
fun main(args: Array<String>) {
println(B().bar());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment