[FE] Don't fail with exception if ESVisitor tries to visit ESLambda
#KT-45243 Fixed
This commit is contained in:
committed by
TeamCityServer
parent
f3135baba9
commit
74118930b4
@@ -78,6 +78,6 @@ class ESReceiverWithDataFlowValue(
|
||||
*/
|
||||
class ESLambda(val lambda: KtLambdaExpression) : AbstractESValue(null) {
|
||||
override fun <T> accept(visitor: ESExpressionVisitor<T>): T {
|
||||
throw IllegalStateException("Lambdas shouldn't be visited by ESExpressionVisitor")
|
||||
return visitor.visitLambda(this)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user