Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f177c2c

Browse files
smowtonigfoo
authored andcommitted
Function trap ids: remove spaces between value parameters
Otherwise these won't match the IDs used by the Java extractor.
1 parent f38f03e commit f177c2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java/kotlin-extractor/src/main/kotlin/KotlinUsesExtractor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ class X {
628628
params.addAll(parameters)
629629
params
630630
}
631-
val paramTypeIds = allParams.joinToString { "{${useType(erase(it.type)).javaResult.id}}" }
631+
val paramTypeIds = allParams.joinToString(separator = ",") { "{${useType(erase(it.type)).javaResult.id}}" }
632632
val labelReturnType = if (name == "<init>") pluginContext.irBuiltIns.unitType else erase(returnType)
633633
val returnTypeId = useType(labelReturnType, TypeContext.RETURN).javaResult.id
634634
// This suffix is added to generic methods (and constructors) to match the Java extractor's behaviour.

0 commit comments

Comments
 (0)