aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/i1866.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-01-10 18:05:00 +0700
committerMartin Odersky <odersky@gmail.com>2017-01-10 18:05:00 +0700
commitbb81d5d54bf95a417d555586cff403c4bb76455f (patch)
tree247a6c7d3bd524d68567da50791f091784158fac /tests/pos/i1866.scala
parent69feaa89167ebeb708535dd4abf3a79a410130f0 (diff)
downloaddotty-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.scala5
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]) = {}
+}