Class TypeMismatch

  • All Implemented Interfaces:
    java.io.Serializable

    public abstract class TypeMismatch
    extends java.lang.Object
    implements java.io.Serializable
    Signals that the first type and the second type have been used interchangeably.

    Type-based optimizations should take this into account so that they don't wreck code with type warnings.

    See Also:
    Serialized Form
    • Constructor Detail

      • TypeMismatch

        public TypeMismatch()
    • Method Detail

      • getFound

        public abstract JSType getFound()
        The RHS type; the type of the assignment target.
      • getRequired

        public abstract JSType getRequired()
        The LHS type; the type being assigned.
      • getLocation

        public abstract Node getLocation()
        The location of the assignment.