diff options
author | Martin Odersky <odersky@gmail.com> | 2017-01-10 18:05:00 +0700 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-01-10 18:05:00 +0700 |
commit | bb81d5d54bf95a417d555586cff403c4bb76455f (patch) | |
tree | 247a6c7d3bd524d68567da50791f091784158fac /tests/pos/i1866.scala | |
parent | 69feaa89167ebeb708535dd4abf3a79a410130f0 (diff) | |
download | dotty-bb81d5d54bf95a417d555586cff403c4bb76455f.tar.gz dotty-bb81d5d54bf95a417d555586cff403c4bb76455f.tar.bz2 dotty-bb81d5d54bf95a417d555586cff403c4bb76455f.zip |
Add test case for #1866
The PR also fixes #1866, as shown by this test case.
Diffstat (limited to 'tests/pos/i1866.scala')
-rw-r--r-- | tests/pos/i1866.scala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/pos/i1866.scala b/tests/pos/i1866.scala new file mode 100644 index 000000000..918d2e182 --- /dev/null +++ b/tests/pos/i1866.scala @@ -0,0 +1,5 @@ +import scala.reflect.Selectable.reflectiveSelectable +object Test { + def f(g: { val update: Unit }) = g.update + def main(update: Array[String]) = {} +} |