summaryrefslogblamecommitdiff
path: root/test/files/run/t4110-new.scala
blob: 24ecd66cce091635cccabc1fa2f16573f3213c43 (plain) (tree)
1
2
3
4
5
6
7
8

                                       
                         
                                                           


         
 




                            
import scala.reflect.runtime.universe._

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

  trait A
  trait B

  inferredType(new A with B)

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