aboutsummaryrefslogblamecommitdiff
path: root/tests/pending/run/t4110-new.scala
blob: 49a05dc9241d3a1aef3656a83ff9df89bd4a10ef (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                                       
                                             








                                                           
 
import scala.reflect.runtime.universe._

object Test extends dotty.runtime.LegacyApp {
  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)
}