summaryrefslogtreecommitdiff
path: root/test/files/pos/t6358_2.scala
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@gmail.com>2012-09-26 14:23:20 +0200
committerHubert Plociniczak <hubert.plociniczak@gmail.com>2012-10-09 21:49:40 +0200
commit63c90af33290c2df38e70982c8c0151df1b106a9 (patch)
treea203eb143b6582ca5187beb2e18ecd11779fdaed /test/files/pos/t6358_2.scala
parent981424b376e8e66253c2ec863ca1222e41d8b374 (diff)
downloadscala-63c90af33290c2df38e70982c8c0151df1b106a9.tar.gz
scala-63c90af33290c2df38e70982c8c0151df1b106a9.tar.bz2
scala-63c90af33290c2df38e70982c8c0151df1b106a9.zip
Added one more test for SI-6358
Diffstat (limited to 'test/files/pos/t6358_2.scala')
-rw-r--r--test/files/pos/t6358_2.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/files/pos/t6358_2.scala b/test/files/pos/t6358_2.scala
new file mode 100644
index 0000000000..7c2beb60d0
--- /dev/null
+++ b/test/files/pos/t6358_2.scala
@@ -0,0 +1,6 @@
+class Y[T](val i: Option[T]) extends AnyVal {
+ def q: List[T] = {
+ lazy val e: List[T] = i.toList
+ e
+ }
+}