Inspectopedia Help

Incompatible 'in' argument types

Reports usages of membership operator in with items and containers of incompatible types.


def list = [1, 2] if ("foo" in list) {} // list of Integers can't contain String

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Groovy, 233.SNAPSHOT

Last modified: 13 July 2023