2011-07-15から1日間の記事一覧
type LT = { def < (that: Int): Boolean } def lt(x: LT, y: Int): Boolean = { println(a.getClass) x < y }scala> lt(2,3) class scala.runtime.RichInt java.lang.NoSuchMethodException at scala.runtime.BoxesRunTime.testLessThan(Unknown Source) sc…