Improve Collection/Array/String detection logic in intentions

Use static methods from KotlinBuiltIns and check all supertypes, support cases
of Collection, Map and CharSequence
This commit is contained in:
Alexander Udalov
2016-10-21 16:04:49 +03:00
parent a5a422fc4d
commit 2076a31094
11 changed files with 109 additions and 45 deletions
@@ -0,0 +1,6 @@
// WITH_RUNTIME
fun foo() {
val m = mapOf("" to 1)
m.isNotEmpty()
}