171ea3571c
This commit adds code to check whether a deserialized cone type is a special function type kind or not when resolving the type of a lambda expression (anonymous function). If it is a special function kind, it sets the type of lambda based on the special function kind. ^KT-64994 Fixed
52 lines
2.2 KiB
Kotlin
52 lines
2.2 KiB
Kotlin
import org.jetbrains.kotlin.gradle.tasks.KotlinJvmCompile
|
|
|
|
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
dependencies {
|
|
api(project(":compiler:psi"))
|
|
api(project(":analysis:analysis-api"))
|
|
api(project(":analysis:analysis-api-impl-barebone"))
|
|
api(project(":analysis:kt-references"))
|
|
api(project(":compiler:resolution.common.jvm"))
|
|
implementation(project(":compiler:backend-common"))
|
|
api(intellijCore())
|
|
implementation(project(":analysis:analysis-internal-utils"))
|
|
|
|
testApi(platform(libs.junit.bom))
|
|
testImplementation(libs.junit.jupiter.api)
|
|
testRuntimeOnly(libs.junit.jupiter.engine)
|
|
testImplementation(kotlinTest("junit"))
|
|
testImplementation(project(":analysis:analysis-api"))
|
|
testImplementation(project(":analysis:analysis-api-standalone:analysis-api-standalone-base"))
|
|
testImplementation(projectTests(":compiler:tests-common"))
|
|
testApi(projectTests(":compiler:test-infrastructure-utils"))
|
|
testApi(projectTests(":compiler:test-infrastructure"))
|
|
testImplementation(projectTests(":plugins:fir-plugin-prototype"))
|
|
testImplementation(projectTests(":compiler:tests-common-new"))
|
|
testImplementation(projectTests(":analysis:analysis-api-impl-barebone"))
|
|
testImplementation(project(":analysis:symbol-light-classes"))
|
|
testImplementation(projectTests(":analysis:decompiled:decompiler-to-file-stubs"))
|
|
testImplementation(project(":analysis:decompiled:decompiler-to-file-stubs"))
|
|
testImplementation(project(":analysis:decompiled:light-classes-for-decompiled"))
|
|
testImplementation(project(":analysis:decompiled:decompiler-to-psi"))
|
|
testImplementation(project(":analysis:decompiled:decompiler-native"))
|
|
testImplementation(projectTests(":analysis:analysis-test-framework"))
|
|
testImplementation(commonDependency("org.jetbrains.kotlin:kotlin-reflect")) { isTransitive = false }
|
|
testImplementation(toolsJar())
|
|
}
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" { projectDefault() }
|
|
}
|
|
|
|
tasks.withType<KotlinJvmCompile>().configureEach {
|
|
compilerOptions.freeCompilerArgs.add("-Xcontext-receivers")
|
|
compilerOptions.optIn.add("org.jetbrains.kotlin.analysis.api.KtAnalysisApiInternals")
|
|
}
|
|
|
|
testsJar()
|