TypeHelper
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
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
See JLS 5.1.10.
Link copied to clipboard
open fun groundTargetTypeOfLambda(lambdaExpr: LambdaExpr, T: ResolvedType, typeSolver: TypeSolver): Pair<ResolvedType, Boolean>
See JLS 15.27.3.
Link copied to clipboard
open fun isCompatibleInALooseInvocationContext(typeSolver: TypeSolver, expression: Expression, t: ResolvedType): Boolean
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
Link copied to clipboard