diff options
author | Paul Phillips <paulp@improving.org> | 2012-04-14 06:16:32 +0100 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-04-16 04:14:54 +0100 |
commit | 4a6f54b5f16b3179b23a44f2f1d83f080e218f72 (patch) | |
tree | 9d68580b78f9da34f4b90a90f1eb10182c4cd6c7 /test/files/run/repl-type-verbose.scala | |
parent | 364dd41c3e0e33afe6c3ec6e0c04f1d345c4b6ca (diff) | |
download | scala-4a6f54b5f16b3179b23a44f2f1d83f080e218f72.tar.gz scala-4a6f54b5f16b3179b23a44f2f1d83f080e218f72.tar.bz2 scala-4a6f54b5f16b3179b23a44f2f1d83f080e218f72.zip |
New facility: TypeDestructurers.
Would prefer to bake a little longer, but, scala days.
More elaboration to come.
Diffstat (limited to 'test/files/run/repl-type-verbose.scala')
-rw-r--r-- | test/files/run/repl-type-verbose.scala | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/files/run/repl-type-verbose.scala b/test/files/run/repl-type-verbose.scala new file mode 100644 index 0000000000..10c390550a --- /dev/null +++ b/test/files/run/repl-type-verbose.scala @@ -0,0 +1,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 +} |