Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (12 sloc) 0.218 kb
package jvm_summit
object Structural {
def getLen(in: {def length(): Int}): Int =
in.length
def main(in: Array[String]) {
getLen("Hello")
getLen(new Lenny)
}
}
class Lenny {
def length() = 55
}
Jump to Line
Something went wrong with that request. Please try again.