From 216ab1c6d13d636513f52840beee6ebe5ce25d34 Mon Sep 17 00:00:00 2001 From: Mikhail Zarechenskiy Date: Fri, 14 Jul 2017 19:35:06 +0300 Subject: [PATCH] Fix error message for inapplicable operator on `getValue` function #KT-11739 Fixed --- .../src/org/jetbrains/kotlin/util/modifierChecks.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/descriptors/src/org/jetbrains/kotlin/util/modifierChecks.kt b/core/descriptors/src/org/jetbrains/kotlin/util/modifierChecks.kt index a8f1243336a..cd720918e9e 100644 --- a/core/descriptors/src/org/jetbrains/kotlin/util/modifierChecks.kt +++ b/core/descriptors/src/org/jetbrains/kotlin/util/modifierChecks.kt @@ -1,5 +1,5 @@ /* - * Copyright 2010-2015 JetBrains s.r.o. + * Copyright 2010-2017 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -103,7 +103,7 @@ private object NoTypeParametersCheck : Check { } private object IsKPropertyCheck : Check { - override val description = "second parameter must have a KProperty type or its supertype" + override val description = "second parameter must be of type KProperty<*> or its supertype" override fun check(functionDescriptor: FunctionDescriptor): Boolean { val secondParameter = functionDescriptor.valueParameters[1] return ReflectionTypes.createKPropertyStarType(secondParameter.module)?.isSubtypeOf(secondParameter.type.makeNotNullable()) ?: false