diff options
author | Martin Odersky <odersky@gmail.com> | 2017-04-09 19:08:52 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2017-04-09 19:09:20 +0200 |
commit | 14fde01d3576f60585d59d2b00cce8b3c177b236 (patch) | |
tree | e257b31cc9a5ca33ccebcd702cce92dfad450162 /tests | |
parent | b8bb34dd0ea68cfed09ed54604f659a787037d2d (diff) | |
download | dotty-14fde01d3576f60585d59d2b00cce8b3c177b236.tar.gz dotty-14fde01d3576f60585d59d2b00cce8b3c177b236.tar.bz2 dotty-14fde01d3576f60585d59d2b00cce8b3c177b236.zip |
Fix #2192: Fullow supertypes when determining whether an expect type is a function type
Diffstat (limited to 'tests')
-rw-r--r-- | tests/pos/i2192.scala | 7 |
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 +} |