Prevent a crash when using a 'val' with a parameter annotation...
It tried to cast an immutable to a mutable property...
This commit is contained in:
@@ -125,6 +125,7 @@ class Parameter(
|
||||
fun Any.listParameters(): List<Parameter> {
|
||||
return (this::class.memberProperties.filter {
|
||||
!it.isConst &&
|
||||
it is KMutableProperty1<*, *> &&
|
||||
it.visibility == KVisibility.PUBLIC &&
|
||||
it.annotations.map { it.annotationClass }.intersect(ParameterType.parameterAnnotationClasses).isNotEmpty()
|
||||
}.map {
|
||||
|
||||
Reference in New Issue
Block a user