Skip to content

Improve :file info type in stacktrace entries - #15892

Open
lukaszsamson wants to merge 1 commit into
elixir-lang:mainfrom
lukaszsamson:ls-stacktrace-type-improve
Open

Improve :file info type in stacktrace entries#15892
lukaszsamson wants to merge 1 commit into
elixir-lang:mainfrom
lukaszsamson:ls-stacktrace-type-improve

Conversation

@lukaszsamson

Copy link
Copy Markdown
Contributor

This PR further improves type of file info in stacktrace by allowing nested chardata
Follow up to #15798

AssistedBy: Claude Fable 5.1

chardata =
binary()
|> opt_union(empty_list())
|> opt_union(non_empty_list(term(), opt_union(binary(), empty_list())))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is accepting any term in the list. We probably need to define this as a recursive type.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants