summaryrefslogblamecommitdiff
path: root/test/files/pos/t7233.scala
blob: ae15c08c356987d3afb97aa551bdb404ec166418 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
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 _
}