diff options
author | Guillaume Martres <smarter@ubuntu.com> | 2017-02-28 22:43:24 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-28 22:43:24 +0900 |
commit | 783b978a4ebbe737a9b8467697a9f6970f99e907 (patch) | |
tree | 472ee74c522fda8dac6461fbb13de6f17b2777a9 /tests | |
parent | 179a5d601575bc4f07239667cc1f3fa758f8e98d (diff) | |
parent | 145ac696c9a2cb26655e954b4a6be879a3500641 (diff) | |
download | dotty-783b978a4ebbe737a9b8467697a9f6970f99e907.tar.gz dotty-783b978a4ebbe737a9b8467697a9f6970f99e907.tar.bz2 dotty-783b978a4ebbe737a9b8467697a9f6970f99e907.zip |
Merge pull request #2035 from dotty-staging/fix-#2033
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 +} |