-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix conversion of this.fld capture refs under separate compilation (#…
- Loading branch information
Showing
4 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
tests/pos-custom-args/captures/captureRef-separate-compilation/Future_1.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class Future[T] | ||
object Future: | ||
class Collector[T](fs: (Future[T]^)*) | ||
class MutableCollector[T](val futures: (Future[T]^)*) extends Collector[T](futures*): | ||
def add(future: Future[T]^{futures*}) = ??? |
5 changes: 5 additions & 0 deletions
5
tests/pos-custom-args/captures/captureRef-separate-compilation/test_2.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
def test = | ||
val collector: Future.MutableCollector[Int] = Future.MutableCollector() | ||
collector.add(???) | ||
|
||
|