diff options
Diffstat (limited to 'tests/untried/pos/t7233.scala')
-rw-r--r-- | tests/untried/pos/t7233.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/untried/pos/t7233.scala b/tests/untried/pos/t7233.scala new file mode 100644 index 000000000..ae15c08c3 --- /dev/null +++ b/tests/untried/pos/t7233.scala @@ -0,0 +1,14 @@ +object Foo { + def bar(i: Int) = i + + def ol(i: Int) = i + def ol(i: String) = i +} +object Test { + import Foo.{ bar => quux, toString => bar, ol => olRenamed} + + val f1 = quux _ + val f1Typed: (Int => Int) = f1 + + val f2: String => String = olRenamed _ +} |