diff options
author | Martin Odersky <odersky@gmail.com> | 2016-07-22 00:12:03 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-07-22 00:12:03 +0200 |
commit | 5968e9f6154cc8642fc3f6cef636a12104dd7a26 (patch) | |
tree | 3212c84169743fd8cea703fe97ab0f2a40782b4b /tests | |
parent | 80a65f4b2512bdf1dc46144bea1c000d39319872 (diff) | |
download | dotty-5968e9f6154cc8642fc3f6cef636a12104dd7a26.tar.gz dotty-5968e9f6154cc8642fc3f6cef636a12104dd7a26.tar.bz2 dotty-5968e9f6154cc8642fc3f6cef636a12104dd7a26.zip |
Fix parameterized typedefs with lambdas as rhs
Previously the compiler crashed when faced with a parameterized typedef
that has a lambda as rhs. We fix this by refining the condition when
not to abstract in typeDefsig.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pos/nestedLambdas.scala | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pos/nestedLambdas.scala b/tests/pos/nestedLambdas.scala new file mode 100644 index 000000000..0e186d193 --- /dev/null +++ b/tests/pos/nestedLambdas.scala @@ -0,0 +1,9 @@ +class Test { + + type T = [X] -> [Y] -> (X, Y) + + type A[X] = [Y] -> (X, Y) + + type B[X] = (X, X) + +} |