Sort collections/map APIs, improve empty implementations.
This commit is contained in:
@@ -2,10 +2,10 @@ class A {}
|
||||
|
||||
fun <T> foo(t: T) {}
|
||||
|
||||
fun <T> emptyList(): MutableList<T> = throw Exception()
|
||||
fun <T> someList(): MutableList<T> = throw Exception()
|
||||
|
||||
fun bar() {
|
||||
<caret>foo(emptyList())
|
||||
<caret>foo(someList())
|
||||
}
|
||||
|
||||
|
||||
@@ -20,4 +20,4 @@ Extension receiver = NO_RECEIVER
|
||||
|
||||
Value arguments mapping:
|
||||
|
||||
MATCH_MODULO_UNINFERRED_TYPES t : MutableList<???> = emptyList()
|
||||
MATCH_MODULO_UNINFERRED_TYPES t : MutableList<???> = someList()
|
||||
|
||||
Reference in New Issue
Block a user