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

Patch TypeConversions to support Nothing type #96

Merged
merged 1 commit into from
May 22, 2021
Merged

Patch TypeConversions to support Nothing type #96

merged 1 commit into from
May 22, 2021

Conversation

cacoco
Copy link

@cacoco cacoco commented May 21, 2021

Problem

The Scala Nothing type is not properly supported when building a TypeLiteral.

Solution

Add a case in the net.codingwell.scalaguice.TypeConversions#scalaTypeToJavaType to
handle converting the Scala Nothing type to a Java type. Add a test case.

This fixes #95.

@tsuckow tsuckow merged commit 7ac471b into codingwell:develop May 22, 2021
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.

bind[X[Nothing]] fails when trying to instatiate Nothing.
2 participants