Skip to content

Conversation

december32
Copy link
Contributor

The :type and :doc commands now handle being invoked with an empty expression gracefully by printing the corresponding usage text, similar to the repl in Scala 2.

scala>:type
:type <expression>.

scala>:doc
:doc <expression>.

Copy link
Member

@dottybot dottybot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, and thank you for opening this PR! 🎉

All contributors have signed the CLA, thank you! ❤️

Have an awesome day! ☀️

@december32 december32 force-pushed the fix-#9538-repl-crash branch from 60ea617 to 5122eaf Compare August 16, 2020 16:03
@december32 december32 force-pushed the fix-#9538-repl-crash branch from 5122eaf to d5e84f4 Compare August 16, 2020 16:06
Copy link
Contributor

@liufengyun liufengyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution @december32 👍

Copy link
Contributor Author

@december32 december32 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed . from the usage text as suggested.

Co-authored-by: Fengyun Liu <liu@fengy.me>
@liufengyun liufengyun merged commit 4dbe0b7 into scala:master Aug 17, 2020
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.

3 participants