Skip to content

Commit 64a5f8e

Browse files
dimonchik0036Space Team
authored andcommitted
[FIR] ReturnTypeCalculator: more debug info
^KT-74534
1 parent 4a3fbbc commit 64a5f8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/fir/providers/src/org/jetbrains/kotlin/fir/resolve/transformers/ReturnTypeCalculator.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors.
2+
* Copyright 2010-2025 JetBrains s.r.o. and Kotlin Programming Language contributors.
33
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
44
*/
55

@@ -19,7 +19,7 @@ abstract class ReturnTypeCalculator {
1919

2020
fun tryCalculateReturnType(declaration: FirCallableDeclaration): FirResolvedTypeRef {
2121
return tryCalculateReturnTypeOrNull(declaration)
22-
?: errorWithAttachment("Return type cannot be calculated for ${declaration::class.simpleName}") {
22+
?: errorWithAttachment("${this::class.simpleName}: Return type cannot be calculated for ${declaration::class.simpleName}") {
2323
withFirEntry("declaration", declaration)
2424
}
2525
}

0 commit comments

Comments
 (0)