summaryrefslogtreecommitdiff
path: root/test/files/neg/t7239.scala
blob: f62cac0a4934dd6179907a5f0a7553682808fc69 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
class Foo {
  def toInt = 12
}
case class Bar( fooBar : Int )

// spurious "erroneous or inaccessible type" error in 2.10.1
class Test {
  var fooBar : Foo = null
  def build = Bar(
    fooBar = foBar.toInt
  )
}