summaryrefslogtreecommitdiff
path: root/test/files/neg/t6323a.scala
Commit message (Collapse)AuthorAgeFilesLines
* SI-6323 outlaws free types from TypeTagEugene Burmako2012-09-141-0/+21
Free types are no longer acceptable in normal type tags. Like type parameters or abstract type members they don't map on any real type, therefore I think this is a justified change. The main reason for doing is this is to prohibit people from using `typeOf` on local classes. Sure, the guard introduced in the previous commit will raise runtime errors about that, but this commit provides static checking. Those especially persistent might use `absTypeOf` and then try to play around with the weak type it returns, but that's advanced usage scenario, and I don't worry much about it. Bottom line: `typeOf` should just work. Things that work with additional effort should be explicitly marked as such.