diff options
author | Martin Odersky <odersky@gmail.com> | 2015-04-17 10:52:15 +0200 |
---|---|---|
committer | Dmitry Petrashko <dmitry.petrashko@gmail.com> | 2015-04-17 21:30:43 +0200 |
commit | 6bcc3187a81ec1f2078709a1a9249ec57a393aad (patch) | |
tree | 6262c18f4d065c9186c7ee246578c082ad48773e /tests/pos | |
parent | e0a0c39a2578eca9927fa4c435ce14654422a825 (diff) | |
download | dotty-6bcc3187a81ec1f2078709a1a9249ec57a393aad.tar.gz dotty-6bcc3187a81ec1f2078709a1a9249ec57a393aad.tar.bz2 dotty-6bcc3187a81ec1f2078709a1a9249ec57a393aad.zip |
Improve documentation and minimze test
Documentation around markFree and narrowLiftedOwner was added.
i480 was minimzed and dependencies on dotc were removed. (+1 squashed commit)
Squashed commits:
[1a84054] Test cases for #480
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/i480.scala | 4 | ||||
-rw-r--r-- | tests/pos/i480a.scala | 15 |
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/pos/i480.scala b/tests/pos/i480.scala new file mode 100644 index 000000000..8c2bb057c --- /dev/null +++ b/tests/pos/i480.scala @@ -0,0 +1,4 @@ +object O { + val x: Function1[String, String] = a => a + val x2: Function1[String, String] = a => "1" +} diff --git a/tests/pos/i480a.scala b/tests/pos/i480a.scala new file mode 100644 index 000000000..b388f6189 --- /dev/null +++ b/tests/pos/i480a.scala @@ -0,0 +1,15 @@ +package test + +/** A class defining symbols and types of standard definitions */ +class Definitions { + + trait LazyType { def complete(): Unit } + + def f(vcs: List[Int]): Unit = { + val completer = new LazyType { + def complete(): Unit = + for (i <- 0 until vcs.length if vcs(i) != 0) + f(vcs.updated(i, 0)) + } + } +} |