diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2011-02-05 12:18:47 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2011-02-05 12:18:47 +0000 |
commit | 20fc7a364a8f9d5de129ede531e6e1ab89f8fb1d (patch) | |
tree | d63c37dd88d504e8a16a3f9eff6e89a1b1dee968 /test/disabled | |
parent | 2316be766bd4c2fe6974b5bbca19e2e20b295793 (diff) | |
download | scala-20fc7a364a8f9d5de129ede531e6e1ab89f8fb1d.tar.gz scala-20fc7a364a8f9d5de129ede531e6e1ab89f8fb1d.tar.bz2 scala-20fc7a364a8f9d5de129ede531e6e1ab89f8fb1d.zip |
Re-enabled test spec-traits (removed the swing ...
Re-enabled test spec-traits (removed the swing dependent part, since all
it tested was call-by-name parameters). no review.
Diffstat (limited to 'test/disabled')
-rw-r--r-- | test/disabled/pos/spec-traits.scala | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/test/disabled/pos/spec-traits.scala b/test/disabled/pos/spec-traits.scala deleted file mode 100644 index 9e339a14ad..0000000000 --- a/test/disabled/pos/spec-traits.scala +++ /dev/null @@ -1,83 +0,0 @@ -trait A[@specialized(Int) T] { def foo: T } -class B extends A[Int] { val foo = 10 } -class C extends B - -// issue 3309 -class Lazy { - def test[U](block: => U): Unit = { block } - - test { lazy val x = 1 } -} - -// issue 3307 -class Bug3307 { - def f[Z](block: String => Z) { - block("abc") - } - - ({ () => - f { implicit x => println(x) } })() -} - -// issue 3301 - trait T[X] - -class Bug3301 { - def t[A]: T[A] = error("stub") - - () => { - type X = Int - - def foo[X] = t[X] - () - } -} -// issue 3299 -object Failure { - def thunk() { - for (i <- 1 to 2) { - val Array(a, b) = Array(1,2) - () - } - } -} - -// issue 3296 - -object AA -{ - def f(block: => Unit) {} - - object BB - { - f { - object CC - - () - } - } - - def foo[T](x: T) = { object A; false } -} - -// issue 3292 -import scala.swing._ -import scala.swing.GridBagPanel._ - -object Grid { - - def later(code : => Unit) = - javax.swing.SwingUtilities.invokeLater(new Runnable { def run { code }}) - - def test = later { - val frame = new Dialog { - contents = new GridBagPanel { - val c = new Constraints - } - } - } - -} - -// issue 3325 -object O { def f[@specialized T] { for(k <- Nil: List[T]) { } } } |