[ https://issues.apache.org/jira/browse/FLINK-2806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14941056#comment-14941056 ]
ASF GitHub Bot commented on FLINK-2806: --------------------------------------- Github user ggevay commented on a diff in the pull request: https://github.com/apache/flink/pull/1212#discussion_r41014072 --- Diff: flink-scala/src/main/scala/org/apache/flink/api/scala/codegen/TypeInformationGen.scala --- @@ -23,6 +23,7 @@ import org.apache.flink.api.common.ExecutionConfig import org.apache.flink.api.common.typeinfo._ import org.apache.flink.api.common.typeutils._ import org.apache.flink.api.java.typeutils._ +import org.apache.flink.api.scala.typeutils.ScalaNothingTypeInfo import org.apache.flink.api.scala.typeutils.{CaseClassSerializer, CaseClassTypeInfo} --- End diff -- Thx, done. > No TypeInfo for Scala's Nothing type > ------------------------------------ > > Key: FLINK-2806 > URL: https://issues.apache.org/jira/browse/FLINK-2806 > Project: Flink > Issue Type: Bug > Components: Scala API > Reporter: Gabor Gevay > Assignee: Gabor Gevay > Priority: Minor > > When writing some generic code, I encountered a situation where I needed a > TypeInformation[Nothing]. Two problems prevent me from getting it: > 1. TypeInformationGen.mkTypeInfo doesn't return a real > TypeInformation[Nothing]. (It actually returns a casted null in that case.) > 2. The line > implicit def createTypeInformation[T]: TypeInformation[T] = macro > TypeUtils.createTypeInfo[T] > does not fire in some situations when it should, when T = Nothing. (I guess > this is a compiler bug.) > I will open a PR shortly. -- This message was sent by Atlassian JIRA (v6.3.4#6332)