diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2017-03-30 17:33:06 +0200 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2017-03-31 11:54:54 +0200 |
commit | f9db9097d0cf314d675669d80f8d5eb8d20f0710 (patch) | |
tree | a1cba9297cd2d8de3d7f868e5794dcbfcda9098e /tests | |
parent | f75caad00256db52bbd3310f245e51d23c2a76cc (diff) | |
download | dotty-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.scala | 6 |
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 +} |