diff options
author | Martin Odersky <odersky@gmail.com> | 2015-05-15 17:02:25 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-05-15 17:05:25 +0200 |
commit | 6674b3563011a84e0389598573feb77cecb37cbc (patch) | |
tree | d253db5e4b8931dbb2b5bf770a622867788a5d5a /tests/pos/i566.scala | |
parent | 49e537e10f572340e2d8f8ac632a5c05227b694f (diff) | |
download | dotty-6674b3563011a84e0389598573feb77cecb37cbc.tar.gz dotty-6674b3563011a84e0389598573feb77cecb37cbc.tar.bz2 dotty-6674b3563011a84e0389598573feb77cecb37cbc.zip |
As i566 shows, it is possible to have a package as prefix, a package
object as owner and be followed by type arguments:
reflect.classTag[T]
expands to
reflect.`package`.classTag[T]
Diffstat (limited to 'tests/pos/i566.scala')
-rw-r--r-- | tests/pos/i566.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/pos/i566.scala b/tests/pos/i566.scala new file mode 100644 index 000000000..34d25f8f2 --- /dev/null +++ b/tests/pos/i566.scala @@ -0,0 +1,5 @@ +object Test { + type T = String + type U + reflect.classTag[T] +} |