aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2017-04-09 20:03:15 +0200
committerGitHub <noreply@github.com>2017-04-09 20:03:15 +0200
commit8d22a17c9bce4f730416f0d8e92dde61759b7181 (patch)
treee914a8195c2ef64f63155d82200ea53047999f13 /tests
parentc82db74c97bec486f3da7cce3128b72711c8cbc3 (diff)
parent14fde01d3576f60585d59d2b00cce8b3c177b236 (diff)
downloaddotty-8d22a17c9bce4f730416f0d8e92dde61759b7181.tar.gz
dotty-8d22a17c9bce4f730416f0d8e92dde61759b7181.tar.bz2
dotty-8d22a17c9bce4f730416f0d8e92dde61759b7181.zip
Merge pull request #2208 from dotty-staging/fix-#2192
Fix #2192: Follow supertypes when determining whether an expect type …
Diffstat (limited to 'tests')
-rw-r--r--tests/pos/i2192.scala7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/pos/i2192.scala b/tests/pos/i2192.scala
new file mode 100644
index 000000000..2e85e366e
--- /dev/null
+++ b/tests/pos/i2192.scala
@@ -0,0 +1,7 @@
+object Test {
+ def foo(x: Int): Int = x
+
+ Some(foo): Option[Int => Int]
+ // missing arguments for method foo
+ // follow this method with `_' if you want to treat it as a partially applied function
+}