summaryrefslogtreecommitdiff
path: root/test/files/run
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2012-11-25 13:32:44 -0800
committerAdriaan Moors <adriaan.moors@typesafe.com>2012-11-25 13:32:44 -0800
commitd2feaeb679106b03ad6137de04a36f0b0c6ddfd9 (patch)
tree81282b6bd14d6a5fd882709294bf33c54b57ff34 /test/files/run
parentb8f06f33a420cf07f980cab61b2a11df6a0f5dca (diff)
parent7f1ba06f1313383fe60ce9bc6566afc78b3dae75 (diff)
downloadscala-d2feaeb679106b03ad6137de04a36f0b0c6ddfd9.tar.gz
scala-d2feaeb679106b03ad6137de04a36f0b0c6ddfd9.tar.bz2
scala-d2feaeb679106b03ad6137de04a36f0b0c6ddfd9.zip
Merge pull request #1665 from paulp/issue/6687
Fix for SI-6687, wrong isVar logic.
Diffstat (limited to 'test/files/run')
-rw-r--r--test/files/run/t6687.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/files/run/t6687.scala b/test/files/run/t6687.scala
new file mode 100644
index 0000000000..ee44e5f0d2
--- /dev/null
+++ b/test/files/run/t6687.scala
@@ -0,0 +1,10 @@
+import scala.reflect.runtime.universe._
+
+class A { lazy val x = 1 }
+
+object Test {
+ def main(args: Array[String]): Unit = {
+ val vars = typeOf[A].members.toList filter (x => x.isTerm && x.asTerm.isVar)
+ assert(vars.isEmpty, vars)
+ }
+}