Skip to content

Commit

Permalink
[FIR] Fix some implicit types/unresolved expressions in red code
Browse files Browse the repository at this point in the history
#KT-70837 Fixed
  • Loading branch information
cypressious authored and qodana-bot committed Aug 23, 2024
1 parent bb60753 commit fd80de4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1027,10 +1027,14 @@ class FirCallCompletionResultsWriterTransformer(
}

}
// NB: if we transform simply all children, there would be too many type error reports.
anonymousFunction.transformReturnTypeRef(implicitTypeTransformer, null)
anonymousFunction.transformValueParameters(implicitTypeTransformer, null)
anonymousFunction.transformBody(implicitTypeTransformer, null)
anonymousFunction.transformChildren(implicitTypeTransformer, null)

anonymousFunction.body?.let {
if (!it.isResolved) {
it.resultType = session.builtinTypes.unitType.coneType
}
}

return anonymousFunction
}

Expand Down

This file was deleted.

0 comments on commit fd80de4

Please sign in to comment.