mirror of
https://github.com/fankes/moshi.git
synced 2025-10-18 23:49:21 +08:00
Kotlin 2.1 and friends (#1966)
* Kotlin 2.1 and friends * fix kotlin 2.1 aliases nullability (#1982) --------- Co-authored-by: Florian LE FICHER <florian.leficher@gmail.com>
This commit is contained in:
@@ -35,8 +35,9 @@ tasks.withType<Test>().configureEach {
|
||||
tasks.withType<KotlinCompile>().configureEach {
|
||||
compilerOptions {
|
||||
allWarningsAsErrors.set(true)
|
||||
freeCompilerArgs.add(
|
||||
freeCompilerArgs.addAll(
|
||||
"-opt-in=kotlin.ExperimentalStdlibApi",
|
||||
"-Xannotation-default-target=param-property",
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@@ -36,8 +36,9 @@ tasks.withType<Test>().configureEach {
|
||||
tasks.withType<KotlinCompile>().configureEach {
|
||||
compilerOptions {
|
||||
allWarningsAsErrors.set(true)
|
||||
freeCompilerArgs.add(
|
||||
freeCompilerArgs.addAll(
|
||||
"-opt-in=kotlin.ExperimentalStdlibApi",
|
||||
"-Xannotation-default-target=param-property",
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@@ -487,7 +487,7 @@ class DualKotlinTest {
|
||||
val parameterized: GenericClass<TypeAlias>,
|
||||
val wildcardIn: GenericClass<in TypeAlias>,
|
||||
val wildcardOut: GenericClass<out TypeAlias>,
|
||||
val complex: GenericClass<GenericTypeAlias>?,
|
||||
val complex: GenericClass<GenericTypeAlias?>?,
|
||||
)
|
||||
|
||||
// Regression test for https://github.com/square/moshi/issues/991
|
||||
|
Reference in New Issue
Block a user