Skip to content

Commit d25a530

Browse files
committed
test(2.0.0-RC1): fix deprecation message
1 parent f3be766 commit d25a530

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

common/src/main/kotlin/component/KotlinEnvironment.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class KotlinEnvironment(
4242
"-opt-in=kotlin.contracts.ExperimentalContracts",
4343
"-opt-in=kotlin.experimental.ExperimentalTypeInference",
4444
"-Xcontext-receivers",
45+
"-Xreport-all-warnings",
4546
"-XXLanguage:+ExplicitBackingFields"
4647
)
4748
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
systemProp.kotlinVersion=2.0.0-Beta5
1+
systemProp.kotlinVersion=2.0.0-RC1
22
systemProp.kotlinIdeVersion=1.9.20-506
33
systemProp.kotlinIdeVersionSuffix=IJ8109.175
44
systemProp.policy=executor.policy

src/test/kotlin/com/compiler/server/JvmRunnerTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class JvmRunnerTest : BaseExecutorTest() {
8383
assertEquals(1, result.compilerDiagnostics[0].interval?.start?.line)
8484
assertEquals(19, result.compilerDiagnostics[0].interval?.start?.ch)
8585
assertEquals(
86-
"'@Deprecated(...) @DeprecatedSinceKotlin(...) @IntrinsicConstEvaluation() fun toInt(): Int' is deprecated. Conversion of Char to Number is deprecated. Use Char.code property instead..",
86+
"'@Deprecated(...) @DeprecatedSinceKotlin(...) @IntrinsicConstEvaluation() fun toInt(): Int' is deprecated. Conversion of Char to Number is deprecated. Use Char.code property instead.",
8787
result.compilerDiagnostics[0].message
8888
)
8989
}

0 commit comments

Comments
 (0)