aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2017-03-31 17:46:38 +0200
committerGitHub <noreply@github.com>2017-03-31 17:46:38 +0200
commitd73c8e42ca526ff2c53a17ddd1fa87044dd5bbca (patch)
tree071a4f66c7ec5201e0897ce6b666161f556e2695 /tests
parent2fceb2dcd7280883e6a3c2beec9190148a5d975b (diff)
parented10ef0208f794060b5351cc601a915177e0a1c5 (diff)
downloaddotty-d73c8e42ca526ff2c53a17ddd1fa87044dd5bbca.tar.gz
dotty-d73c8e42ca526ff2c53a17ddd1fa87044dd5bbca.tar.bz2
dotty-d73c8e42ca526ff2c53a17ddd1fa87044dd5bbca.zip
Merge pull request #2154 from dotty-staging/topic/fix-#2151
Fix #2151: don't die for wrong number of typeargs applied
Diffstat (limited to 'tests')
-rw-r--r--tests/neg/i2151.scala6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/neg/i2151.scala b/tests/neg/i2151.scala
new file mode 100644
index 000000000..1ae034c02
--- /dev/null
+++ b/tests/neg/i2151.scala
@@ -0,0 +1,6 @@
+trait Test {
+ type Nil = [K] => K
+ type StrangeCons[H, Tail <: [H, A] => H] = Tail[H, H]
+
+ def list: StrangeCons[Int, Nil] // error
+}