aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/valueclasses/t6358.scala
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2015-04-04 01:15:30 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-05-01 13:27:42 +0200
commit06e1905aed315d5199936797c9e9493326b74595 (patch)
treedb50094702d250935ecbafd465542d4c11adc5d5 /tests/pos/valueclasses/t6358.scala
parent411d5be477cc862b14d8938c591524d8bf37d4cd (diff)
downloaddotty-06e1905aed315d5199936797c9e9493326b74595.tar.gz
dotty-06e1905aed315d5199936797c9e9493326b74595.tar.bz2
dotty-06e1905aed315d5199936797c9e9493326b74595.zip
Enable untried pos tests related to value classes
Each test needs to have its own package because pos_all will try to compile the whole valueclasses directory at once.
Diffstat (limited to 'tests/pos/valueclasses/t6358.scala')
-rw-r--r--tests/pos/valueclasses/t6358.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/pos/valueclasses/t6358.scala b/tests/pos/valueclasses/t6358.scala
new file mode 100644
index 000000000..291ae2e9e
--- /dev/null
+++ b/tests/pos/valueclasses/t6358.scala
@@ -0,0 +1,8 @@
+package t6358
+
+class L(val t: Int) extends AnyVal {
+ def lazyString = {
+ lazy val x = t.toString
+ () => x
+ }
+}