aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/neg/t8177a.scala
blob: 0347541eaf39d03fd61b6bb0ea0b5e677fcbe9e6 (plain) (blame)
1
2
3
4
5
6
trait A { type Result }

class PolyTests {
  def wrong(x: A { type Result = Int })
             : A { type Result = String} = x
}