Skip to content

Add repl-init-package setting to configure REPL-entered code package#25768

Draft
noti0na1 wants to merge 1 commit intoscala:mainfrom
dotty-staging:add-repl-init-package
Draft

Add repl-init-package setting to configure REPL-entered code package#25768
noti0na1 wants to merge 1 commit intoscala:mainfrom
dotty-staging:add-repl-init-package

Conversation

@noti0na1
Copy link
Copy Markdown
Member

@noti0na1 noti0na1 commented Apr 12, 2026

Add --repl-init-package flag to config the REPL code wrapper.

scala>:settings --repl-init-package:my.app
scala> class Foo
// defined class Foo
scala> classOf[Foo].getName
val res0: String = "my.app.rs$line$1$Foo"

How much have you relied on LLM-based tools in this contribution?

moderately

Additional notes

Could be used to avoid the unnamed package issue in CC: #25758

Mainly for testing now. Do not merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant