Skip to content

Commit

Permalink
Be explicit on kotlin language version param for tests
Browse files Browse the repository at this point in the history
Summary: Defaults will change in Kotlin 2.0, therefore those need to be explicit here now

Reviewed By: pengj

Differential Revision: D59136408

fbshipit-source-id: ed2d53818ec0193cd5bb1939913fb106fdb0f435
  • Loading branch information
Nivaldo Bondança authored and facebook-github-bot committed Jul 1, 2024
1 parent 5be9d5e commit d7bcd67
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ open class DcgTestCase {
vararg srcs: SourceFile,
dcgConfig: DcgTestConfiguration = DEFAULT_DCG_CONFIG,
): JvmCompilationResult {
return makeCompilationContext(srcs, dcgConfig).compile()
return makeCompilationContext(srcs, dcgConfig)
.apply {
languageVersion = "1.9"
supportsK2 = false
}
.compile()
}

private fun makeCompilationContext(
Expand Down

0 comments on commit d7bcd67

Please sign in to comment.