diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-01-27 19:00:45 +0300 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-02-14 13:24:46 +0100 |
commit | 7881137858960d5e59f133ef15730ad96feec5e2 (patch) | |
tree | 4466eda1c1c4be9fbbe2ff146c37f13fc47649ab /test | |
parent | 8217c06e4f2b8a6312caa257f9a629dc59979ab7 (diff) | |
download | scala-7881137858960d5e59f133ef15730ad96feec5e2.tar.gz scala-7881137858960d5e59f133ef15730ad96feec5e2.tar.bz2 scala-7881137858960d5e59f133ef15730ad96feec5e2.zip |
SI-8187 api#Symbol.name now has precise type
I don’t remember why we didn’t have written it as `def name: NameType`
in the first place (probably because of path-dependent bugs that were
popping up every now and then when we were developing the first version
of reflection API), but now there are definitely no obstacles to that.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/pos/t8187.check | 0 | ||||
-rw-r--r-- | test/files/pos/t8187.scala | 6 |
2 files changed, 6 insertions, 0 deletions
diff --git a/test/files/pos/t8187.check b/test/files/pos/t8187.check new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/test/files/pos/t8187.check diff --git a/test/files/pos/t8187.scala b/test/files/pos/t8187.scala new file mode 100644 index 0000000000..99b10c6260 --- /dev/null +++ b/test/files/pos/t8187.scala @@ -0,0 +1,6 @@ +import scala.reflect.runtime.universe._ + +object Test extends App { + val tyn: TypeName = (??? : TypeSymbol).name + val ten: TermName = (??? : TermSymbol).name +}
\ No newline at end of file |