Skip to content

Fixes for tour/lower-type-bounds #989

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

Merged
merged 1 commit into from
Jan 14, 2018
Merged

Fixes for tour/lower-type-bounds #989

merged 1 commit into from
Jan 14, 2018

Conversation

ipostanogov
Copy link
Contributor

Fix prepend type (#865 was incomplete), specify all types explicitly.

}

case class ListNode[+B](h: B, t: Node[B]) extends Node[B] {
def prepend(elem: B) = ListNode[B](elem, this)
def prepend(elem: B): ListNode[B] = ListNode(elem, this)
Copy link
Member

Choose a reason for hiding this comment

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

The automatic insertion of Unit by the compiler sometimes bothers me.

Copy link
Member

@jvican jvican left a comment

Choose a reason for hiding this comment

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

Thank you for these changes, merging 🚀!

@jvican jvican merged commit 8e614f8 into scala:master Jan 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants