summaryrefslogtreecommitdiff
path: root/test/files/run/typetags_symbolof_x.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-8194 adds Universe.symbolOf[T]Eugene Burmako2014-02-141-0/+15
A very frequent use for a result of typeOf is obtaining an underlying type symbol. Another thing that comes up occasionally at stack overflow is a request to add facilities for reification of symbols. This naturally suggests that our reflection API would benefit from a method called symbolOf that can take a term or type argument and return an underlying symbol. While an API to extract a term symbol from an expression needs some time to be designed and then implemented robustly (we don’t have untyped macros so we’ll have to account for various desugarings), meaning that we probably won’t have time for that in 2.11, a type symbol extractor seems to be a very low-hanging fruit.