Probably not, or at least not out-of-box, if I understand your request correctly. Some possible approaches that you can try:
- reflection on the resulting script class instance will allow you to check all defined properties (you can get access to to the instance, if you’re using a host interface, e.g.
BasicJvmScriptingHost
)
- REPL can give you results for every snippet
- Kotlin scratch files in IntelliJ display intermediate results