Improve KParameter.toString for instance and extension receiver parameter
#KT-17860 Fixed
This commit is contained in:
+2
-2
@@ -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)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user