diff options
author | Martin Odersky <odersky@gmail.com> | 2017-02-27 12:35:37 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-02-27 13:22:24 +0100 |
commit | 145ac696c9a2cb26655e954b4a6be879a3500641 (patch) | |
tree | 8bd78d3adbdf513a3dcd74317078fee7d4e03d3a /tests | |
parent | d0162aed64def280af8aa812514d101c1563fc28 (diff) | |
download | dotty-145ac696c9a2cb26655e954b4a6be879a3500641.tar.gz dotty-145ac696c9a2cb26655e954b4a6be879a3500641.tar.bz2 dotty-145ac696c9a2cb26655e954b4a6be879a3500641.zip |
Fix #2033: Improve handling of unresolved overloaded arguments
Diffstat (limited to 'tests')
-rw-r--r-- | tests/neg/i2033.scala | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/neg/i2033.scala b/tests/neg/i2033.scala new file mode 100644 index 000000000..b28a0d99e --- /dev/null +++ b/tests/neg/i2033.scala @@ -0,0 +1,21 @@ +import java.io._ +import collection._ +object Test { + def check(obj: AnyRef): Unit = { + val bos = new ByteArrayOutputStream() + val out = new ObjectOutputStream(println) // error + val arr = bos toByteArray () + val in = (()) + val deser = () + val lhs = mutable LinkedHashSet () + check(lhs) + } +} + +// minimization +object Test2 { + class ObjectOutputStream(out: String) { + def this() = this("") + } + val out = new ObjectOutputStream(println) // error +} |