From b0fe13505faf7c93093b4e9dc2813259e2f70094 Mon Sep 17 00:00:00 2001 From: Som Snytt Date: Sun, 23 Feb 2014 02:37:09 -0800 Subject: SI-8325 Accept infix star type outside patterns This is a follow-up to SI-5702 which enabled use of `*` in infix notation in patterns. Most of the work is in distinguishing infix from a sequence pattern. Also, do not take backticked star as the repeated parameter marker in postfix position. That is, `Int``*``` is not `Int*` -- I hope double-tick renders as tick. There is not a special use case except that backticks mean "I am an identifier, as is, and not a keyword." --- test/files/pos/t8325.scala | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 test/files/pos/t8325.scala (limited to 'test/files/pos/t8325.scala') diff --git a/test/files/pos/t8325.scala b/test/files/pos/t8325.scala new file mode 100644 index 0000000000..af33ee7bb3 --- /dev/null +++ b/test/files/pos/t8325.scala @@ -0,0 +1,9 @@ + +trait Test { + type +[A, B] = (A, B) + type *[A, B] = (A, B) + + type X[A, B] = A + B + type Y[A, B] = A * B + type Z[A, B] = A `*` B +} -- cgit v1.2.3