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
The current codegen only supports methods defined inline, so we can't extend the RPC definition interface, which is useful for re-using method definitions.
Here's a quick example:
interfaceSharedCalls {
suspendfuninherit()
}
interfaceDefinitionRpc : RPC, SharedCalls {
suspendfuninline()
}
suspendfunexecuteRpc() {
val http =HttpClient {
installRPC()
}
val rpc = http.rpc().withService<DefinitionRpc>()
// client code expects these to work
rpc.inline()
rpc.inherit()
}
As the codegen wont generate the inheritmethod so the class DefinitionRpcClient wont compile, leading into this error:
Class 'DefinitionRpcClient' is not abstract and does not implement abstract member public abstract suspend fun inherit()
The text was updated successfully, but these errors were encountered:
The current codegen only supports methods defined inline, so we can't extend the RPC definition interface, which is useful for re-using method definitions.
Here's a quick example:
As the codegen wont generate the
inherit
method so the classDefinitionRpcClient
wont compile, leading into this error:The text was updated successfully, but these errors were encountered: