diff options
author | Adriaan Moors <adriaan.moors@epfl.ch> | 2010-09-22 20:39:00 +0000 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@epfl.ch> | 2010-09-22 20:39:00 +0000 |
commit | 2e7bd469cd4bf887c7fd230f56e2f77e1241f6b5 (patch) | |
tree | a7427776f20a69c4353f05089ee85c1720b1af0c /test/files | |
parent | 3e70e56427e9b4eed821863e233bc71a907464b5 (diff) | |
download | scala-2e7bd469cd4bf887c7fd230f56e2f77e1241f6b5.tar.gz scala-2e7bd469cd4bf887c7fd230f56e2f77e1241f6b5.tar.bz2 scala-2e7bd469cd4bf887c7fd230f56e2f77e1241f6b5.zip |
closes #3792: type equality for singleton types...
closes #3792: type equality for singleton types did not take type
aliases into account while chasing the chain of underlying types (if the
underlying type is an alias of a singleton type, it should be followed)
review by odersky
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/pos/t3792.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/files/pos/t3792.scala b/test/files/pos/t3792.scala new file mode 100644 index 0000000000..10773c5f5b --- /dev/null +++ b/test/files/pos/t3792.scala @@ -0,0 +1,4 @@ +object Test { + type Hui = Nil.type + val n: Hui = Nil +}
\ No newline at end of file |