public abstract class TypeMismatch
extends java.lang.Object
implements java.io.Serializable
Type-based optimizations should take this into account so that they don't wreck code with type warnings.
| Constructor and Description |
|---|
TypeMismatch() |
| Modifier and Type | Method and Description |
|---|---|
static TypeMismatch |
createForTesting(JSType found,
JSType required) |
abstract JSType |
getFound()
The RHS type; the type of the assignment target.
|
abstract JSType |
getRequired()
The LHS type; the type being assigned.
|
public abstract JSType getFound()
public abstract JSType getRequired()
public static TypeMismatch createForTesting(JSType found, JSType required)
Copyright © 2009-2020 Google. All Rights Reserved.