aboutsummaryrefslogblamecommitdiff
path: root/tests/neg/bounds.scala
blob: 8d2cd825995f978035df539d2aeb65448957f290 (plain) (tree)
1
2
3
4
5
6
7
8







                                          
object Test {
  class C[B >: String <: Int](x: B)
  def g[B >: String <: Int](x: B): Int = x
  def main(args: Array[String]): Unit = {
    g("foo")
    new C("bar")
  }
}