Add dataflow tests for lambda-like constructs

This commit adds tests for dataflow involving lambdas, big-arity lambdas, SAM conversions, and function references.
This commit is contained in:
Tamas Vajk
2022-03-17 09:26:16 +01:00
committed by Ian Lynagh
parent aab271d81e
commit abcb367495
8 changed files with 132 additions and 1 deletions

View File

@@ -3908,7 +3908,7 @@ open class KotlinFileExtractor(
addModifiers(id, "final")
addVisibilityModifierToLocalOrAnonymousClass(id)
extractClassSupertypes(superTypes, listOf(), id)
extractClassSupertypes(superTypes, listOf(), id, inReceiverContext = true)
var parent: IrDeclarationParent? = currentDeclaration.parent
while (parent != null) {