blob: 58d4e0c7b05a32622e5c4510c056ecf2f7f30c3f (
plain) (
tree)
|
|
class Interval[@specialized T](val high: T)
class Node[@specialized T](val interval: Interval[T]) {
val x1 = Some(interval.high)
}
object Test {
def main(args: Array[String]): Unit = {
new Node(new Interval(5)).x1
}
}
|