diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-09-12 12:24:08 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-09-14 13:29:48 +0200 |
commit | 524c90d09f2fb4687b312f2c7597393978d50b6a (patch) | |
tree | 1badec2cf5d0cf4ce3769d69af225005b7bc550e /tools/buildcp | |
parent | 0eabb63c06f4041077860875c9ea71216adf4faa (diff) | |
download | scala-524c90d09f2fb4687b312f2c7597393978d50b6a.tar.gz scala-524c90d09f2fb4687b312f2c7597393978d50b6a.tar.bz2 scala-524c90d09f2fb4687b312f2c7597393978d50b6a.zip |
SI-6323 outlaws free types from TypeTag
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.
Diffstat (limited to 'tools/buildcp')
0 files changed, 0 insertions, 0 deletions