File tree 2 files changed +22
-1
lines changed
2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 184
184
./scala-scala/src/library/scala/collection/SortedSetLike.scala
185
185
./scala-scala/src/library/scala/collection/Traversable.scala
186
186
187
- # https://github.com/lampepfl/dotty/issues/938
187
+ # https://github.com/lampepfl/dotty/issues/938 (but relies also on #937 being fixed)
188
188
#./scala-scala/src/library/scala/collection/TraversableLike.scala
189
189
190
190
./scala-scala/src/library/scala/collection/TraversableProxy.scala
Original file line number Diff line number Diff line change
1
+ object Test {
2
+ import scala .collection ._
3
+
4
+ trait T {
5
+ def f () : Unit
6
+ }
7
+
8
+ def view = new T {
9
+ def f () = ()
10
+ }
11
+
12
+ trait TLike [+ A , RR ] { self =>
13
+
14
+ def repr : RR = ???
15
+
16
+ def view2 = new TraversableView [A , RR ] {
17
+ protected lazy val underlying = self.repr
18
+ override def foreach [U ](f : A => U ): Unit = ???
19
+ }
20
+ }
21
+ }
You can’t perform that action at this time.
0 commit comments