/kt48765.kt:10:20: warning: Type argument for type parameter 'T' cannot be inferred because it has incompatible upper bounds: String, Number (multiple incompatible classes). This will become an error in a future release. See: https://youtrack.jetbrains.com/issue/KT-51221

/kt48765.kt:14:9: warning: Type 'String' is final, so the value of the type parameter is predetermined.

/kt48765.kt:15:15: warning: Unchecked cast of 'String' to 'T (of fun <T : String> foo)'.
