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
objectCrash {
traitContextobjectLabel {
defapply(
text: String="UnsetParam",
tooltip: String="UnsetParam",
foo: Int=0
):Context?=>String=""//return type needs to be a Context function or it wont trigger
}
defupdate[R](f: Context?=>R):R=???
update {
//this should blow upLabel(
tooltip ="some tooltip",
text ="someText",
)
}
}
This is needed to correctly deal with bunched arguments arisign from IFTs.
It's necessary in particular for let-bindings introduced by the compiler,
e.g. when passing default araguments. User-defined blocks are not the
problem since they get already eta expanded in typer.
Minimized code
Output (click arrow to expand)
Note
if the named parameters are passed in the same order as declared, it works
The text was updated successfully, but these errors were encountered: