aboutsummaryrefslogtreecommitdiff
path: root/tests/run
diff options
context:
space:
mode:
authorodersky <odersky@gmail.com>2017-02-08 22:21:05 +1100
committerGitHub <noreply@github.com>2017-02-08 22:21:05 +1100
commit18d5913821064fffa0c74524ba1a8ead9a7def31 (patch)
tree502b93ffc33390ec0f433dfa5b71b7e9c384edd2 /tests/run
parent99679cffc0a5d20e7e7f3c090eb310a6134eeee7 (diff)
parentabbee9e28ef3f0150c9afa48f485ecc49e0e3787 (diff)
downloaddotty-18d5913821064fffa0c74524ba1a8ead9a7def31.tar.gz
dotty-18d5913821064fffa0c74524ba1a8ead9a7def31.tar.bz2
dotty-18d5913821064fffa0c74524ba1a8ead9a7def31.zip
Merge pull request #1921 from dotty-staging/fix-#1907
Fix #1907: Improve error message
Diffstat (limited to 'tests/run')
-rw-r--r--tests/run/array-addition.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run/array-addition.scala b/tests/run/array-addition.scala
index 8def48e85..09a1b0bad 100644
--- a/tests/run/array-addition.scala
+++ b/tests/run/array-addition.scala
@@ -4,8 +4,8 @@ object Test {
def main(args: Array[String]): Unit = {
prettyPrintArray(Array(1,2,3) :+ 4)
prettyPrintArray(1 +: Array(2,3,4))
- prettyPrintArray(Array() :+ 1)
- prettyPrintArray(1 +: Array())
+ prettyPrintArray(Array[Int]() :+ 1)
+ prettyPrintArray(1 +: Array[Int]())
}
}