Improve KParameter.toString for instance and extension receiver parameter

#KT-17860 Fixed
This commit is contained in:
Alexander Udalov
2019-09-16 12:08:08 +02:00
parent 59186b2617
commit aa77f6c245
2 changed files with 4 additions and 4 deletions
@@ -16,12 +16,12 @@ fun baz(name: String) {}
fun box(): String {
assertEquals(
listOf("extension receiver of ${Int::foo}", "parameter #1 s of ${Int::foo}"),
listOf("extension receiver parameter of ${Int::foo}", "parameter #1 s of ${Int::foo}"),
Int::foo.parameters.map(Any::toString)
)
assertEquals(
listOf("instance of ${A::bar}"),
listOf("instance parameter of ${A::bar}"),
A::bar.parameters.map(Any::toString)
)