From 7881137858960d5e59f133ef15730ad96feec5e2 Mon Sep 17 00:00:00 2001 From: Eugene Burmako Date: Mon, 27 Jan 2014 19:00:45 +0300 Subject: SI-8187 api#Symbol.name now has precise type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- test/files/pos/t8187.check | 0 test/files/pos/t8187.scala | 6 ++++++ 2 files changed, 6 insertions(+) create mode 100644 test/files/pos/t8187.check create mode 100644 test/files/pos/t8187.scala (limited to 'test/files/pos') diff --git a/test/files/pos/t8187.check b/test/files/pos/t8187.check new file mode 100644 index 0000000000..e69de29bb2 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 -- cgit v1.2.3