From 14fde01d3576f60585d59d2b00cce8b3c177b236 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sun, 9 Apr 2017 19:08:52 +0200 Subject: Fix #2192: Fullow supertypes when determining whether an expect type is a function type --- tests/pos/i2192.scala | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/pos/i2192.scala (limited to 'tests') 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 +} -- cgit v1.2.3