Merge pull request #733 from daugeldauge/fix-variance-issues

Fix variance issues in kotlin-codegen
This commit is contained in:
Jesse Wilson
2018-11-05 07:22:40 +11:00
committed by GitHub
3 changed files with 6 additions and 12 deletions

View File

@@ -1157,11 +1157,13 @@ data class SmokeTestType(
val hasChildren: Boolean = false,
val favoriteFood: String? = null,
val favoriteDrink: String? = "Water",
val wildcardOut: List<out String> = emptyList(),
val wildcardOut: MutableList<out String> = mutableListOf(),
val nullableWildcardOut: MutableList<out String?> = mutableListOf(),
val wildcardIn: Array<in String>,
val any: List<*>,
val anyTwo: List<Any>,
val anyOut: List<out Any>,
// val anyOut: MutableList<out Any>, waiting for fix in kotlinpoet https://github.com/square/kotlinpoet/issues/520
val nullableAnyOut: MutableList<out Any?>,
val favoriteThreeNumbers: IntArray,
val favoriteArrayValues: Array<String>,
val favoriteNullableArrayValues: Array<String?>,