diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2017-02-16 15:45:00 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2017-02-16 21:48:33 +1000 |
commit | fe2d9a431ada04f18197e2bad5cbaa94667ef0b3 (patch) | |
tree | a6d3d757b4a59685406b093dc58507589023f229 /project/MiMa.scala | |
parent | 6bba8f7168b870b53f459d716566cfa46b0a5174 (diff) | |
download | scala-fe2d9a431ada04f18197e2bad5cbaa94667ef0b3.tar.gz scala-fe2d9a431ada04f18197e2bad5cbaa94667ef0b3.tar.bz2 scala-fe2d9a431ada04f18197e2bad5cbaa94667ef0b3.zip |
Avoid ambiguous overload on JDK 9
The addition of this method in `CharBuffer`
CharBuffer position(int newPosition)
renders an ambiguity in:
```
scala> (b: java.nio.CharBuffer) => b.position
<console>:12: error: ambiguous reference to overloaded definition,
both method position in class CharBuffer of type (x$1: Int)java.nio.CharBuffer
and method position in class Buffer of type ()Int
match expected type ?
(b: java.nio.CharBuffer) => b.position
```
Manually applying the empty params avoids this.
Diffstat (limited to 'project/MiMa.scala')
0 files changed, 0 insertions, 0 deletions