// FIR_IDENTICAL // WITH_STDLIB // !LANGUAGE: +ProgressionsChangingResolve fun SmartList(x: E) {} fun SmartList(x: Collection) {} fun append(x: Any?) {} fun append(x: Collection<*>) {} fun append2(x: Iterable<*>) {} fun append2(x: Collection<*>) {} class In(x: T) @JvmName("append31") fun append3(x: In) {} fun append3(x: In>) {} fun append4(x: E) {} fun > append4(x: E) {} fun main() { SmartList(1..2) // warning SmartList(1..10) // no warning append(1..10) // warning append((1..10) as Any) // no warning append((1..10) as Iterable) // no warning append("a".."z") // no warning, the range is not iterable append(1.0..2.0) append2(1..10) // no warning append3(In(1..10)) // no warning append4(1..10) // warning }