Support generic arrays with defaults in code gen (#1310)

This commit is contained in:
Zac Sweers
2021-03-13 20:47:27 -05:00
committed by GitHub
parent 6df66b81dc
commit 935f8b872a
3 changed files with 18 additions and 3 deletions

View File

@@ -1455,7 +1455,9 @@ data class SmokeTestType(
val favoriteNullableArrayValues: Array<String?>,
val nullableSetListMapArrayNullableIntWithDefault: Set<List<Map<String, Array<IntArray?>>>>? = null,
val aliasedName: TypeAliasName = "Woah",
val genericAlias: GenericTypeAlias = listOf("Woah")
val genericAlias: GenericTypeAlias = listOf("Woah"),
// Regression test for https://github.com/square/moshi/issues/1272
val nestedArray: Array<Map<String, Any>>? = null
)
// Compile only, regression test for https://github.com/square/moshi/issues/848