diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2012-11-25 13:32:44 -0800 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2012-11-25 13:32:44 -0800 |
commit | d2feaeb679106b03ad6137de04a36f0b0c6ddfd9 (patch) | |
tree | 81282b6bd14d6a5fd882709294bf33c54b57ff34 /test | |
parent | b8f06f33a420cf07f980cab61b2a11df6a0f5dca (diff) | |
parent | 7f1ba06f1313383fe60ce9bc6566afc78b3dae75 (diff) | |
download | scala-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')
-rw-r--r-- | test/files/run/t6687.scala | 10 |
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) + } +} |