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-colon-type.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-colon-type.scala')
-rw-r--r-- | test/files/run/repl-colon-type.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/repl-colon-type.scala b/test/files/run/repl-colon-type.scala index 39ab580d2a..c055b215c2 100644 --- a/test/files/run/repl-colon-type.scala +++ b/test/files/run/repl-colon-type.scala @@ -18,6 +18,14 @@ object Test extends ReplTest { |:type def f() = 5 | |:type def g[T](xs: Set[_ <: T]) = Some(xs.head) + | + |// verbose! + |:type -v List(1,2,3) filter _ + |:type -v def f[T >: Null, U <: String](x: T, y: U) = Set(x, y) + |:type -v def x = 1 ; def bar[T >: Null <: AnyRef](xyz: T) = 5 + |:type -v Nil.combinations _ + |:type -v def f[T <: AnyVal] = List[T]().combinations _ + |:type -v def f[T, U >: T](x: T, y: List[U]) = x :: y """.stripMargin } |