blob: 0b16c857b4878b912e56b62d4c68ba4fddff1b68 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
object Test extends dotty.runtime.LegacyApp {
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)
}
|