diff options
author | Martin Odersky <odersky@gmail.com> | 2014-01-19 12:09:23 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-01-19 12:09:23 +0100 |
commit | d4204733c669ce4b198d9078f84d6617633c6d4f (patch) | |
tree | 7235b09b900df0b008c9569454038419d3e99321 /tests/pos/test.scala | |
parent | f11dea6fc2eed56bee3eb1999c3890aae958e897 (diff) | |
download | dotty-d4204733c669ce4b198d9078f84d6617633c6d4f.tar.gz dotty-d4204733c669ce4b198d9078f84d6617633c6d4f.tar.bz2 dotty-d4204733c669ce4b198d9078f84d6617633c6d4f.zip |
Refinement of fully-defined accumulator.
It needs to follow type aliases in order not to give false indications what variables are contained in a type.
Diffstat (limited to 'tests/pos/test.scala')
-rw-r--r-- | tests/pos/test.scala | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/tests/pos/test.scala b/tests/pos/test.scala index 403ea9704..b614afa70 100644 --- a/tests/pos/test.scala +++ b/tests/pos/test.scala @@ -1,12 +1,7 @@ object test { - - val x = 2 - val y: Int = math.abs(x) - - val xs = List((1, "a"), (2, "b")) - - def write(x: String) = ??? - def write(xs: (Int, String)*) = ??? - write(xs: _*) + object foo extends scala.reflect.io.Streamable.Chars { + val lns = lines() + val pkgLines = lns collect { case x if x startsWith "package " => x stripPrefix "package" trim } + } }
\ No newline at end of file |