We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5342427 + e44ab52 commit 53123ccCopy full SHA for 53123cc
src/test/scala/scala/async/run/toughtype/ToughType.scala
@@ -228,8 +228,22 @@ class ToughTypeSpec {
228
case `e` =>
229
}
230
231
+
232
+ @Test def ticket83ValueClass() {
233
+ import scala.async.Async._
234
+ import scala.concurrent._, duration._, ExecutionContext.Implicits.global
235
+ val f = async {
236
+ val uid = new IntWrapper("foo")
237
+ await(Future(uid))
238
+ }
239
+ val result = Await.result(f, 5.seconds)
240
+ result mustEqual (new IntWrapper("foo"))
241
242
243
244
+class IntWrapper(val value: String) extends AnyVal
245
246
247
trait A
248
249
trait B
0 commit comments