-
|
Hello! Here is the project config definition and example usage. TLDR I have: Is there a way to cast/spread the |
Beta Was this translation helpful? Give feedback.
Answered by
HT154
Feb 6, 2026
Replies: 1 comment 3 replies
-
|
Like many OO languages, there isn't a direct way to do this. That said, it is actually possible in Pkl and you're on the right track with spreading: local const uberTest: ScalaTestModule = new {
...baseModule.toDynamic()
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hmm that's a somewhat surprising error. I'd need to investigate a bit deeper to figure out if it's a bug.
That said, this works:
You could even make this more convenient: