diff options
author | Martin Odersky <odersky@gmail.com> | 2016-10-10 09:40:08 +0200 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2016-10-12 16:13:49 +0200 |
commit | d8127d2f0f31913cca7eb60a721b25974b3bfde6 (patch) | |
tree | 1cc9d26f86767589430afdd105cefa5eab21433a /tests/pending/pos/polytypes.scala | |
parent | df2187e51e7a38a6ca8260ab4a415a7cd5efdcfc (diff) | |
download | dotty-d8127d2f0f31913cca7eb60a721b25974b3bfde6.tar.gz dotty-d8127d2f0f31913cca7eb60a721b25974b3bfde6.tar.bz2 dotty-d8127d2f0f31913cca7eb60a721b25974b3bfde6.zip |
Use => instead of -> for PolyTypes
If PolyTypes are to become value types we want to keep `=>` as the arrow
for consistency. `->` should be reserved for PolyTypes that do not have
side effects on instantiation.
Diffstat (limited to 'tests/pending/pos/polytypes.scala')
-rw-r--r-- | tests/pending/pos/polytypes.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pending/pos/polytypes.scala b/tests/pending/pos/polytypes.scala new file mode 100644 index 000000000..ec6c89d10 --- /dev/null +++ b/tests/pending/pos/polytypes.scala @@ -0,0 +1,9 @@ +object Test { + + type T = [+X] => (List[X] => List[X]) + + def reverse[X](xs: List[X]): List[X] = ??? + + // val x: T = reverse + +} |