summaryrefslogtreecommitdiff
path: root/test/files/run/repl-type-verbose.scala
blob: 10c390550af47efc8817682e5fae7a3f71b59e6a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import scala.tools.partest.ReplTest

object Test extends ReplTest {
  def code = """
    |// verbose!
    |:type -v def f = 5
    |:type -v def f() = 5
    |:type -v def f[T] = 5
    |:type -v def f[T >: Null] = 5
    |:type -v def f[T <: String] = 5
    |:type -v def f[T]() = 5
    |:type -v def f[T, U]() = 5
    |:type -v def f[T, U]()() = 5
    |:type -v def f[T, U <: T] = 5
    |:type -v def f[T, U <: T](x: T)(y: U) = 5
    |:type -v def f[T: Ordering] = 5
    |:type -v def f[T: Ordering] = implicitly[Ordering[T]]
    |:type -v def f[T <: { type Bippy = List[Int] ; def g(): Bippy }] = 5
  """.stripMargin
}