diff options
author | Martin Odersky <odersky@gmail.com> | 2016-04-07 23:48:17 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-04-07 23:48:24 +0200 |
commit | 20175a01baf6dc3129f72c16f205832901098956 (patch) | |
tree | 5e06af09f9d668b247f6379676d5757c6489561e /tests/pickling | |
parent | 56b948c332993014e13c4c3e192b3573f9c46462 (diff) | |
download | dotty-20175a01baf6dc3129f72c16f205832901098956.tar.gz dotty-20175a01baf6dc3129f72c16f205832901098956.tar.bz2 dotty-20175a01baf6dc3129f72c16f205832901098956.zip |
Fix unpickling of Java SeqLiterals
Two problems were fixed:
- isJava needs to look at function symbol, not its type (references
to Java methods get normal MethodTypes not JavMethodTypes)
- we also need to handle the case where the repeated argument is
wrspped in a type ascription.
Diffstat (limited to 'tests/pickling')
-rw-r--r-- | tests/pickling/i1202d.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/pickling/i1202d.scala b/tests/pickling/i1202d.scala new file mode 100644 index 000000000..d03adf197 --- /dev/null +++ b/tests/pickling/i1202d.scala @@ -0,0 +1,4 @@ +class Fail5 { + val someClass: Class[_] = ??? + val resultMethod = someClass.getMethod("result") +} |