summaryrefslogtreecommitdiff
path: root/test/files/run/t4110-new.scala
blob: 3285b82c61d35a95edbe46ba97511ce2ee9ab657 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
object Test extends App {
  def inferredType[T : TypeTag](v : T) = println(typeTag[T])

  trait A
  trait B

  inferredType(new A with B)

  val name = new A with B
  inferredType(name)
}