aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i480a.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-04-17 10:52:15 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-04-17 21:30:43 +0200
commit6bcc3187a81ec1f2078709a1a9249ec57a393aad (patch)
tree6262c18f4d065c9186c7ee246578c082ad48773e /tests/pos/i480a.scala
parente0a0c39a2578eca9927fa4c435ce14654422a825 (diff)
downloaddotty-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/i480a.scala')
-rw-r--r--tests/pos/i480a.scala15
1 files changed, 15 insertions, 0 deletions
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))
+ }
+ }
+}