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


                                          
   



                                                   
 
object Test {
  def g[B >: String <: Int](x: B): Int = x
  def main(args: Array[String]): Unit = {
    g("foo")
  }
  def baz[X >: Y, Y <: String](x: X, y: Y) = (x, y)

  baz[Int, String](1, "abc")

}