mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
Use the class of the subtype of CharSequence when available. When it is not (for type parameters bounded by CharSequence) call the CharSequence getter and 'get' method. Using the most specific type posible fixes the forInStringSpecialized test that expects the use of INVOKEVIRTUAL and not INVOKEINTERFACE. Add tests for the type parameter use.