codingwell / scala-guice

Scala extensions for Google Guice
Apache License 2.0
341 stars 44 forks source link

Patch TypeConversions to support Nothing type #96

Closed cacoco closed 3 years ago

cacoco commented 3 years ago

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.