TypeHelper

open class TypeHelper(source)

The term "type" is used loosely in this chapter to include type-like syntax that contains inference variables. Assertions that involve inference variables are assertions about every proper type that can be produced by replacing each inference variable with a proper type.

Author

Federico Tomassetti

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard
open fun glb(types: Set<ResolvedType>): ResolvedType
See JLS 5.1.10.
Link copied to clipboard
See JLS 15.27.3.
Link copied to clipboard
see https://docs.oracle.com/javase/specs/jls/se8/html/jls-5.html#jls-5.
Link copied to clipboard
see https://docs.oracle.com/javase/specs/jls/se8/html/jls-5.html#jls-5.
Link copied to clipboard
The term proper type excludes such "types" that mention inference variables.
Link copied to clipboard
See JLS 4.10.4.
Link copied to clipboard
open fun toBoxedType(primitiveType: ResolvedPrimitiveType, typeSolver: TypeSolver): ResolvedType