From 6c06d441e51682fd96d9c99ff24d18ad7c39be2f Mon Sep 17 00:00:00 2001 From: Mikhail Zarechenskiy Date: Thu, 21 Jun 2018 10:57:41 +0300 Subject: [PATCH] Fix description of error type --- .../jetbrains/kotlin/resolve/constants/constantValues.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/descriptors/src/org/jetbrains/kotlin/resolve/constants/constantValues.kt b/core/descriptors/src/org/jetbrains/kotlin/resolve/constants/constantValues.kt index 8f2e9141232..d1f3cbbffb3 100644 --- a/core/descriptors/src/org/jetbrains/kotlin/resolve/constants/constantValues.kt +++ b/core/descriptors/src/org/jetbrains/kotlin/resolve/constants/constantValues.kt @@ -205,7 +205,7 @@ class UByteValue(byteValue: Byte) : UnsignedValueConstant(byteValue) { class UShortValue(shortValue: Short) : UnsignedValueConstant(shortValue) { override fun getType(module: ModuleDescriptor): KotlinType { return module.findClassAcrossModuleDependencies(KotlinBuiltIns.FQ_NAMES.uShort)?.defaultType - ?: ErrorUtils.createErrorType("Unsigned type UByte not found") + ?: ErrorUtils.createErrorType("Unsigned type UShort not found") } override fun accept(visitor: AnnotationArgumentVisitor, data: D): R = visitor.visitUShortValue(this, data) @@ -216,7 +216,7 @@ class UShortValue(shortValue: Short) : UnsignedValueConstant(shortValue) class UIntValue(intValue: Int) : UnsignedValueConstant(intValue) { override fun getType(module: ModuleDescriptor): KotlinType { return module.findClassAcrossModuleDependencies(KotlinBuiltIns.FQ_NAMES.uInt)?.defaultType - ?: ErrorUtils.createErrorType("Unsigned type UByte not found") + ?: ErrorUtils.createErrorType("Unsigned type UInt not found") } override fun accept(visitor: AnnotationArgumentVisitor, data: D) = visitor.visitUIntValue(this, data) @@ -227,7 +227,7 @@ class UIntValue(intValue: Int) : UnsignedValueConstant(intValue) { class ULongValue(longValue: Long) : UnsignedValueConstant(longValue) { override fun getType(module: ModuleDescriptor): KotlinType { return module.findClassAcrossModuleDependencies(KotlinBuiltIns.FQ_NAMES.uLong)?.defaultType - ?: ErrorUtils.createErrorType("Unsigned type UByte not found") + ?: ErrorUtils.createErrorType("Unsigned type ULong not found") } override fun accept(visitor: AnnotationArgumentVisitor, data: D): R = visitor.visitULongValue(this, data)