Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move the :*: type alias to the toplevel #70

Merged
merged 2 commits into from
Jul 14, 2017

Conversation

dwijnand
Copy link
Collaborator

Fixes #44

@@ -23,6 +23,7 @@ package object sjsonnew {

type LNil = LList.LNil0
val LNil = LList.LNil0
type :*:[A1, A2 <: LList] = LCons[A1, A2]
Copy link
Owner

Choose a reason for hiding this comment

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

Weren't there a Scala compiler bug about splitting type alias and companion-looking object into different scope? scala/bug#7139
A common workaround is to move the object :*: here. See https://github.com/typelevel/cats/blob/master/core/src/main/scala/cats/data/package.scala

See SI-7139 "type alias and object with the same name cause type mismatch"
@eed3si9n eed3si9n merged commit 3ded1fa into eed3si9n:master Jul 14, 2017
@dwijnand dwijnand deleted the move-lcons-alias branch July 14, 2017 16:58
@dwijnand
Copy link
Collaborator Author

Cool, sorry I forgot about your comments here.

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.

None yet

2 participants