diff options
author | odersky <odersky@gmail.com> | 2017-02-08 22:21:05 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-08 22:21:05 +1100 |
commit | 18d5913821064fffa0c74524ba1a8ead9a7def31 (patch) | |
tree | 502b93ffc33390ec0f433dfa5b71b7e9c384edd2 /tests/pos | |
parent | 99679cffc0a5d20e7e7f3c090eb310a6134eeee7 (diff) | |
parent | abbee9e28ef3f0150c9afa48f485ecc49e0e3787 (diff) | |
download | dotty-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/pos')
-rw-r--r-- | tests/pos/t3859.scala | 2 | ||||
-rw-r--r-- | tests/pos/t5859.scala | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/pos/t3859.scala b/tests/pos/t3859.scala index 992207301..486c1d4b2 100644 --- a/tests/pos/t3859.scala +++ b/tests/pos/t3859.scala @@ -1,4 +1,4 @@ class Test { - def foo: Unit = bar(Array(): _*) + def foo: Unit = bar(Array[AnyRef](): _*) def bar(values: AnyRef*): Unit = () } diff --git a/tests/pos/t5859.scala b/tests/pos/t5859.scala index 2a31e68ee..60ec8b4cb 100644 --- a/tests/pos/t5859.scala +++ b/tests/pos/t5859.scala @@ -7,9 +7,9 @@ class A { f(List[AnyRef](): _*) f(List(): _*) f(Nil: _*) - f(Array(): _*) + // f(Array(): _*) // undetermined ClassTag f(Array[AnyRef](): _*) f(List(1)) f(List(1), Nil: _*) - f(List(1), Array(): _*) + // f(List(1), Array(): _*) // undetermined ClassTag } |