1 2 3 4 5 6 7 8 9 10
package test class T { def foo[T <: String](x: T): T = x def bar[T](x: T): T = x class Inner { def foo[T](x: T): T = x def bar[T](x: T): T = x } }