diff options
author | Martin Odersky <odersky@gmail.com> | 2015-11-16 10:17:34 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-11-17 21:30:21 +0100 |
commit | 0a15bb5be1d7a6e8ee635ef3a5eea4e6094ebce0 (patch) | |
tree | 076b8754506b0fd99fda54f3843de486dc89bc3c /tests/pos | |
parent | 7c6870e4d5ac3a9206aed16633c5f0a92fc97b5d (diff) | |
download | dotty-0a15bb5be1d7a6e8ee635ef3a5eea4e6094ebce0.tar.gz dotty-0a15bb5be1d7a6e8ee635ef3a5eea4e6094ebce0.tar.bz2 dotty-0a15bb5be1d7a6e8ee635ef3a5eea4e6094ebce0.zip |
Add test case
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/i938.scala | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/pos/i938.scala b/tests/pos/i938.scala new file mode 100644 index 000000000..cf8fd76e3 --- /dev/null +++ b/tests/pos/i938.scala @@ -0,0 +1,21 @@ +object Test { + import scala.collection._ + + trait T { + def f() : Unit + } + + def view = new T { + def f() = () + } + + trait TLike[+A, RR] { self => + + def repr: RR = ??? + + def view2 = new TraversableView[A, RR] { + protected lazy val underlying = self.repr + override def foreach[U](f: A => U): Unit = ??? + } + } +} |