summaryrefslogblamecommitdiff
path: root/test/files/pos/t7233b.scala
blob: 927c7fcfd12f6f1f82a83a01e5188381b4d27fce (plain) (tree)
1
2
3
4
5
6
7
8







                                                                      
object Test {
  // crash
  def foo(a: Any) = { import a.{toString => toS}; toS }

  // okay
  def ok1(a: String) = { import a.{isInstanceOf => iio}; iio[String] }
  def ok2(a: Int) = { import a.{toInt => ti}; ti }
}