diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2013-03-09 17:20:47 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2013-03-09 23:35:17 +0100 |
commit | 745c36a3289d9d5a9078ee07dc4f7187e1cb2fc3 (patch) | |
tree | 674dad8d61082cf6d88e015c8f46784be77ff11f /test/files | |
parent | 2ff7650fb9f337dd123449e6cbcefc521cac8556 (diff) | |
download | scala-745c36a3289d9d5a9078ee07dc4f7187e1cb2fc3.tar.gz scala-745c36a3289d9d5a9078ee07dc4f7187e1cb2fc3.tar.bz2 scala-745c36a3289d9d5a9078ee07dc4f7187e1cb2fc3.zip |
SI-7328 Bail out of names/defaults if args are error typed
To avoid a crasher later on with a null type inside a
sequence argument.
Diffstat (limited to 'test/files')
-rw-r--r-- | test/files/neg/t7238.check | 6 | ||||
-rw-r--r-- | test/files/neg/t7238.scala | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/test/files/neg/t7238.check b/test/files/neg/t7238.check new file mode 100644 index 0000000000..b87f83ff65 --- /dev/null +++ b/test/files/neg/t7238.check @@ -0,0 +1,6 @@ +t7238.scala:6: error: type mismatch; + found : Seq[Any] + required: Seq[String] + c.c()(Seq[Any](): _*) + ^ +one error found diff --git a/test/files/neg/t7238.scala b/test/files/neg/t7238.scala new file mode 100644 index 0000000000..d42dc8d385 --- /dev/null +++ b/test/files/neg/t7238.scala @@ -0,0 +1,7 @@ +trait Main { + trait C { + def c(x: Any = 0)(bs: String*) + } + def c: C + c.c()(Seq[Any](): _*) +} |