summaryrefslogblamecommitdiff
path: root/test/files/run/t4110-old.scala
blob: a42646ce527d3b5895c444c2dc539c98872d58c3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                              
object Test extends App {
  def inferredType[T : Manifest](v : T) = println(manifest[T])

  trait A
  trait B

  inferredType(new A with B)

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