629e0628d6
The diagnostics cannot be implemented with the FIR frontend checker because it requires constant evaluation over FIR. Therefore, the diagnostics are implemented as a set of klib checks over IR. For the diagnostics, the js() call argument must be evaluated and inlined as IrConst<String> into IR in the same way as const val initializers and annotation arguments. ^KT-59388 Fixed ^KT-59399 Fixed ^KT-62425 Fixed
20 lines
377 B
Kotlin
20 lines
377 B
Kotlin
plugins {
|
|
kotlin("jvm")
|
|
id("jps-compatible")
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly(project(":compiler:ir.tree"))
|
|
compileOnly(commonDependency("org.jetbrains.kotlin:kotlin-reflect")) { isTransitive = false }
|
|
|
|
implementation(project(":core:compiler.common.js"))
|
|
}
|
|
|
|
optInToUnsafeDuringIrConstructionAPI()
|
|
|
|
sourceSets {
|
|
"main" { projectDefault() }
|
|
"test" {}
|
|
}
|
|
|