Skip to content

Commit

Permalink
fix wrong type of extension properties of classes `FormUrlEncodedBody…
Browse files Browse the repository at this point in the history
…` and `MultipartBody` in custom scripting
  • Loading branch information
sunny-chung committed Apr 17, 2024
1 parent be2ff82 commit 5a226ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ kotlin {

implementation("org.jetbrains.compose.components:components-splitpane:1.5.2")

implementation("io.github.sunny-chung:kotlite-interpreter:1.1.0-SNAPSHOT")
implementation("io.github.sunny-chung:kotlite-interpreter:1.1.0-snapshot.1")
implementation("io.github.sunny-chung:kotlite-stdlib:1.0.0")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ object CustomCodeClasses {
ExtensionProperty(
receiver = "FormUrlEncodedBody",
declaredName = "value",
type = "List<FormUrlEncodedBody>",
type = "List<UserKeyValuePair>",
getter = { interpreter, receiver, typeArgs ->
(receiver as DelegatedValue<FormUrlEncodedBody>).value.value.toRuntimeValue2(
interpreter.symbolTable(),
Expand All @@ -317,7 +317,7 @@ object CustomCodeClasses {
ExtensionProperty(
receiver = "MultipartBody",
declaredName = "value",
type = "List<MultipartBody>",
type = "List<UserKeyValuePair>",
getter = { interpreter, receiver, typeArgs ->
(receiver as DelegatedValue<MultipartBody>).value.value.toRuntimeValue2(
interpreter.symbolTable(),
Expand Down

0 comments on commit 5a226ae

Please sign in to comment.