Skip to content

Commit

Permalink
Capture check Channel.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
Linyxus committed Nov 5, 2023
1 parent eb5f74a commit 78b3613
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/pos-special/stdlib/concurrent/Channel.scala
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@

package scala.concurrent

import language.experimental.captureChecking

/** This class provides a simple FIFO queue of data objects,
* which are read by one or more reader threads.
*
* @tparam A type of data exchanged
*/
@deprecated("Use `java.util.concurrent.LinkedTransferQueue` instead.", since = "2.13.0")
class Channel[A] {
class Channel[sealed A] {
private class LinkedList {
var elem: A = _
var next: LinkedList = _
Expand Down

0 comments on commit 78b3613

Please sign in to comment.