Repository navigation
Expect with defaults #494
Replies: 5 comments 3 replies
|
Could we add a syntax to call the default implementation from an This would be semantically similar to I don't have any syntax that comes to mind. |
|
Maybe part of this, maybe not, but I find that there is an issue in that expect/actual currently does not support default implementations for interface methods at all. This issue is a significant limitation that goes beyond having to define defaults. In terms of just defaults for actuals, this also opens the option of incremental defaults, for example a default for all native implementations that is then overridden by an iOs implementation. |
|
This is more on an IDE side of things, but it would be nice for the defaults in expect declarations to be slightly transparent. Kinda like Inlay hints in functions with default values expect fun hello() = println(“Hello from Common, team!!”) |
|
Instead of explicitly writing |
|
This seems a fairly straightforward change (in terms of source changes), and a significant DevEx improvement. Defining common source sets like |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This is an issue to discuss expect with defaults. The current full text of the proposal can be found here.
All reactions