+
Skip to content

Conversation

reimai
Copy link
Contributor

@reimai reimai commented Oct 7, 2024

A follow up to #543
Turned out it's quite possible to have NoPosition (with 0, 0 coordinates) in proto generated sources, which ruins current sort.

@MateuszKubuszok
Copy link
Member

I'd report I there scala/scala3#21672, since it might be a bug in the compiler.

As for the fix, I'd prefer something that relies on

implicit val ordering: Ordering[Symbol] = Ordering.by(_.pos).orElseBy(_.name)

since it's easier to maintain.

@MateuszKubuszok
Copy link
Member

MateuszKubuszok commented Oct 7, 2024

I wanted to explain how I'd see the fix but it was easier to just write it #623 - it should be fixed on master

@MateuszKubuszok
Copy link
Member

Released in 1.5.0

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.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载