diff options
author | Paul Phillips <paulp@improving.org> | 2011-07-01 16:24:36 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-07-01 16:24:36 +0000 |
commit | dcc07bd9f0ce8c2f3ba1757047caa5919f4bc7c5 (patch) | |
tree | 8cb01983b75f31969ae40242349155d1606c2a42 /test/files | |
parent | 60d0585371bb1c575f1c8e14893cea811029055f (diff) | |
download | scala-dcc07bd9f0ce8c2f3ba1757047caa5919f4bc7c5.tar.gz scala-dcc07bd9f0ce8c2f3ba1757047caa5919f4bc7c5.tar.bz2 scala-dcc07bd9f0ce8c2f3ba1757047caa5919f4bc7c5.zip |
Fixed a bug involving classOf[Foo] having the w...
Fixed a bug involving classOf[Foo] having the wrong erasure. Luckily I
had only days ago deciphered the unique handling of classOf, so I knew
what was up. Closes #4753, review by odersky.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/run/bug4753.check | 1 | ||||
-rw-r--r-- | test/files/run/bug4753.scala | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/test/files/run/bug4753.check b/test/files/run/bug4753.check new file mode 100644 index 0000000000..7b19ee8df2 --- /dev/null +++ b/test/files/run/bug4753.check @@ -0,0 +1 @@ +boolean diff --git a/test/files/run/bug4753.scala b/test/files/run/bug4753.scala new file mode 100644 index 0000000000..cfb252cbe5 --- /dev/null +++ b/test/files/run/bug4753.scala @@ -0,0 +1,12 @@ +trait A { + val actualType: Class[_] +} +trait B extends A { + final val actualType = classOf[Boolean] +} + +object Test extends B { + def main(args: Array[String]): Unit = { + println(actualType) + } +} |