Skip to content

Commit

Permalink
fix(#93): during determination of custom alias, do not consider gener…
Browse files Browse the repository at this point in the history
…ics when comparing type reference with type
  • Loading branch information
mcarleio committed Nov 1, 2024
1 parent 310bfc3 commit 0a72dae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ object KonverterCodeGenerator {
}

private fun isAlias(typeReference: KSTypeReference, type: KSType): Boolean {
return typeReference.toString() != type.makeNotNullable().toString().takeWhile { it != '<' }
return typeReference.toString().takeWhile { it != '<' } != type.makeNotNullable().toString().takeWhile { it != '<' }
}

private fun retrieveCodeBuilder(
Expand Down

0 comments on commit 0a72dae

Please sign in to comment.