diff options
Diffstat (limited to 'test/files/pos/channels.scala')
-rw-r--r-- | test/files/pos/channels.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/files/pos/channels.scala b/test/files/pos/channels.scala index 6513f3a5f0..4c7be2cc82 100644 --- a/test/files/pos/channels.scala +++ b/test/files/pos/channels.scala @@ -12,8 +12,8 @@ object Bang { */ object Test extends Application { - object IC extends Channel[int] - def f[b](x: ![b]): int = x match { + object IC extends Channel[Int] + def f[b](x: ![b]): Int = x match { case send: ![c] => send.chan match { case IC => send.data @@ -22,8 +22,8 @@ object Test extends Application { } object Test2 extends Application { - object IC extends Channel[Set[int]] - def f[b](s: ![b]): Set[int] = s match { + object IC extends Channel[Set[Int]] + def f[b](s: ![b]): Set[Int] = s match { case IC ! x => x } } |