Skip to content

Commit 71ca40a

Browse files
committed
Do not render special names in error messages
1 parent b51de9c commit 71ca40a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler/src/main/kotlin/injekt/compiler/resolution/InjektCallable.kt

+4-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ fun InjektCallable.substitute(map: Map<InjektClassifier, InjektType>): InjektCal
4646
)
4747
}
4848

49-
fun FirCallableSymbol<*>.toInjektCallable(ctx: InjektContext, chainFqName: FqName = fqName): InjektCallable =
49+
fun FirCallableSymbol<*>.toInjektCallable(
50+
ctx: InjektContext,
51+
chainFqName: FqName = FqName(fqName.pathSegments().filter { !it.isSpecial }.joinToString("."))
52+
): InjektCallable =
5053
ctx.cached("injekt_callable", this) {
5154
val info = callableInfo(ctx)
5255
InjektCallable(

0 commit comments

Comments
 (0)