A DESCRIPTION OF THE PROBLEM :
It would be convenient to have a flag that would enable warnings for intersection types that might be inferred for the following code: List.of(1, "").
Similar flags exist in Scala 2 -Xlint:infer-any and in Scala 3 -Winfer-union. Kotlin has an issue requesting a similar flag: https://youtrack.jetbrains.com/issue/KT-23121/Show-warnings-for-types-inferred-to-Any.
            
It would be convenient to have a flag that would enable warnings for intersection types that might be inferred for the following code: List.of(1, "").
Similar flags exist in Scala 2 -Xlint:infer-any and in Scala 3 -Winfer-union. Kotlin has an issue requesting a similar flag: https://youtrack.jetbrains.com/issue/KT-23121/Show-warnings-for-types-inferred-to-Any.