aboutsummaryrefslogtreecommitdiff
path: root/tests/pending
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2016-10-10 09:40:08 +0200
committerGuillaume Martres <smarter@ubuntu.com>2016-10-12 16:13:49 +0200
commitd8127d2f0f31913cca7eb60a721b25974b3bfde6 (patch)
tree1cc9d26f86767589430afdd105cefa5eab21433a /tests/pending
parentdf2187e51e7a38a6ca8260ab4a415a7cd5efdcfc (diff)
downloaddotty-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')
-rw-r--r--tests/pending/pos/polytypes.scala9
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
+
+}