diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2014-02-17 23:18:50 +0100 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2014-02-18 09:23:38 +0100 |
commit | afecfe90cd98a657ce83f3e833c940518563064e (patch) | |
tree | 23f0dd8d4a1a9aebf47f098c65c83746da4f0efc /test/pending/typetags_typeof_x.scala | |
parent | 34532d7e92b8ed2a9411260007fcfcc00f377ccc (diff) | |
download | scala-afecfe90cd98a657ce83f3e833c940518563064e.tar.gz scala-afecfe90cd98a657ce83f3e833c940518563064e.tar.bz2 scala-afecfe90cd98a657ce83f3e833c940518563064e.zip |
reverses SI-6484
Unfortunately I have to revert b017629 because of SI-8303. There are projects
(e.g. slick) that use typeOf in annotations, which effectively means bye-bye.
Diffstat (limited to 'test/pending/typetags_typeof_x.scala')
-rw-r--r-- | test/pending/typetags_typeof_x.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/pending/typetags_typeof_x.scala b/test/pending/typetags_typeof_x.scala new file mode 100644 index 0000000000..08be6d4527 --- /dev/null +++ b/test/pending/typetags_typeof_x.scala @@ -0,0 +1,14 @@ +import scala.reflect.runtime.universe._ + +object Test extends App { + def foo[T](x: T) = weakTypeOf(List(x)) + println(foo(2)) + locally { class C; println(weakTypeOf(new C)) } + + println(typeOf(2)) + println(typeOf(List(1, "1"))) + println(typeOf(new { def x = 2 })) + println(typeOf[Null]) + println(typeOf[Nothing]) + println(typeOf(null)) +}
\ No newline at end of file |