summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/reflect/scala/reflect/api/Symbols.scala2
-rw-r--r--test/files/pos/t8187.check0
-rw-r--r--test/files/pos/t8187.scala6
3 files changed, 7 insertions, 1 deletions
diff --git a/src/reflect/scala/reflect/api/Symbols.scala b/src/reflect/scala/reflect/api/Symbols.scala
index 15d4fae59b..7dd5bcc4ab 100644
--- a/src/reflect/scala/reflect/api/Symbols.scala
+++ b/src/reflect/scala/reflect/api/Symbols.scala
@@ -171,7 +171,7 @@ trait Symbols { self: Universe =>
/** The name of the symbol as a member of the `Name` type.
* @group Basics
*/
- def name: Name
+ def name: NameType
/** The encoded full path name of this symbol, where outer names and inner names
* are separated by periods.
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