aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/scala/async/run/toughtype/ToughType.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-08-21 23:29:11 +0200
committerJason Zaugg <jzaugg@gmail.com>2013-08-22 17:24:38 +0200
commit98e2f26000aaaf5abb527f776426c4759b95cde8 (patch)
tree03dbf931b87f952286febbf8bced6ca735b5c2a5 /src/test/scala/scala/async/run/toughtype/ToughType.scala
parent8371f480ca6783ea52aa76f4990eed101938c224 (diff)
downloadscala-async-98e2f26000aaaf5abb527f776426c4759b95cde8.tar.gz
scala-async-98e2f26000aaaf5abb527f776426c4759b95cde8.tar.bz2
scala-async-98e2f26000aaaf5abb527f776426c4759b95cde8.zip
Use @uncheckedBounds to avoid introducing refchecks errors
... in code that would otherwise have smuggled through these slack LUBs in the types of trees but never in a TypeTree. More details in SI-7694. Fixes #29
Diffstat (limited to 'src/test/scala/scala/async/run/toughtype/ToughType.scala')
-rw-r--r--src/test/scala/scala/async/run/toughtype/ToughType.scala9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/test/scala/scala/async/run/toughtype/ToughType.scala b/src/test/scala/scala/async/run/toughtype/ToughType.scala
index 202a288..b342a00 100644
--- a/src/test/scala/scala/async/run/toughtype/ToughType.scala
+++ b/src/test/scala/scala/async/run/toughtype/ToughType.scala
@@ -10,7 +10,7 @@ import language.{reflectiveCalls, postfixOps}
import scala.concurrent._
import scala.concurrent.duration._
import scala.async.Async._
-import org.junit.Test
+import org.junit.{Assert, Test}
import scala.async.internal.AsyncId
@@ -136,3 +136,10 @@ class ToughTypeSpec {
foo
}
}
+
+trait A
+trait B
+
+trait L[A2, B2 <: A2] {
+ def bar(a: Any, b: Any) = 0
+}