You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: compiler-plugin/src/main/kotlin/io/github/toxa2033/saved/state/compiler/extensions/IrGenerationSavedStateExtension.kt
Copy file name to clipboardExpand all lines: compiler-plugin/src/main/kotlin/io/github/toxa2033/saved/state/compiler/extensions/SavedStateIrGenerator.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -125,7 +125,7 @@ class SavedStateIrGenerator(
125
125
126
126
val valueParam = valueParameters.firstOrNull() ?: error("Not found default value for auto generated get${originalPropertyName}LiveData method")
127
127
128
-
val typeValueParameter = valueParam.defaultValue?.expression?.type?: error("Not found default value in get${originalPropertyName}LiveData")
128
+
val typeValueParameter = valueParam.symbol.owner.type
129
129
130
130
val expressionBodyDefaultValue = pluginContext.irFactory.createExpressionBody(startOffset, endOffset) {
Copy file name to clipboardExpand all lines: compiler-plugin/src/main/kotlin/io/github/toxa2033/saved/state/compiler/extensions/SavedStateResolveExtension.kt
0 commit comments