aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2017-03-30 17:33:06 +0200
committerFelix Mulder <felix.mulder@gmail.com>2017-03-31 11:54:54 +0200
commitf9db9097d0cf314d675669d80f8d5eb8d20f0710 (patch)
treea1cba9297cd2d8de3d7f868e5794dcbfcda9098e /tests
parentf75caad00256db52bbd3310f245e51d23c2a76cc (diff)
downloaddotty-f9db9097d0cf314d675669d80f8d5eb8d20f0710.tar.gz
dotty-f9db9097d0cf314d675669d80f8d5eb8d20f0710.tar.bz2
dotty-f9db9097d0cf314d675669d80f8d5eb8d20f0710.zip
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
+}