blob: 0d966e46ddfcff8eb60cd2ae857620fd6ab5dcf7 [file]
// RUN_PIPELINE_TILL: FRONTEND
import java.util.*
fun foo() {
val al = ArrayList<String>()
al.size
al.<!TYPE_INFERENCE_ONLY_INPUT_TYPES_ERROR!>contains<!>(1)
al.contains("")
al.remove("")
al.removeAt(1)
val hs = HashSet<String>()
hs.size
hs.<!TYPE_INFERENCE_ONLY_INPUT_TYPES_ERROR!>contains<!>(1)
hs.contains("")
hs.remove("")
val hm = HashMap<String, Int>()
hm.size
hm.<!TYPE_INFERENCE_ONLY_INPUT_TYPES_ERROR!>containsKey<!>(1)
hm.containsKey("")
<!TYPE_INFERENCE_ONLY_INPUT_TYPES_ERROR!>hm[1]<!>
hm[""]
hm.remove("")
}
/* GENERATED_FIR_TAGS: flexibleType, functionDeclaration, integerLiteral, intersectionType, javaFunction, localProperty,
nullableType, propertyDeclaration, stringLiteral */