diff options
author | Lukas Rytz <lukas.rytz@typesafe.com> | 2015-02-03 12:56:52 +0100 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@typesafe.com> | 2015-02-03 12:56:52 +0100 |
commit | 92dce69d5d91d6040b106230827bf7c4f07aea51 (patch) | |
tree | 2a58a4eecb106224055beea0583afaa4f44b5837 /test/files/neg | |
parent | b6058387007f0326009737fa29747ffbc322447c (diff) | |
parent | c30ed29f6cee9d4e0bd4a99c4be804ffcb20d281 (diff) | |
download | scala-92dce69d5d91d6040b106230827bf7c4f07aea51.tar.gz scala-92dce69d5d91d6040b106230827bf7c4f07aea51.tar.bz2 scala-92dce69d5d91d6040b106230827bf7c4f07aea51.zip |
Merge pull request #4260 from retronym/ticket/9093
SI-9093 Fix value discarding / multiple param list crasher
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/t9093.check | 6 | ||||
-rw-r--r-- | test/files/neg/t9093.scala | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/files/neg/t9093.check b/test/files/neg/t9093.check new file mode 100644 index 0000000000..085a433f0b --- /dev/null +++ b/test/files/neg/t9093.check @@ -0,0 +1,6 @@ +t9093.scala:3: error: polymorphic expression cannot be instantiated to expected type; + found : [C](f: C)Null + required: Unit + val x: Unit = apply2(0)/*(0)*/ + ^ +one error found diff --git a/test/files/neg/t9093.scala b/test/files/neg/t9093.scala new file mode 100644 index 0000000000..d9922ad70e --- /dev/null +++ b/test/files/neg/t9093.scala @@ -0,0 +1,5 @@ +object Main { + def apply2[C](fa: Any)(f: C) = null + val x: Unit = apply2(0)/*(0)*/ +} + |