Package org.ek9lang.compiler.phase3
Class CheckTypeCovariance
java.lang.Object
org.ek9lang.compiler.common.RuleSupport
org.ek9lang.compiler.common.TypedSymbolAccess
org.ek9lang.compiler.phase3.CheckTypeCovariance
- All Implemented Interfaces:
Consumer<CovarianceCheckData>
Checks the covariance compatibility of two variables, this will traverse them to get their types.
Emits errors if they are not compatible.
This is a check that excludes coercion of types.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.common.RuleSupport
errorListener, symbolsAndScopes
-
Constructor Summary
ConstructorsConstructorDescriptionCheckTypeCovariance
(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener) -
Method Summary
Methods inherited from class org.ek9lang.compiler.common.TypedSymbolAccess
getRecordedAndTypedSymbol, isProcessingScopePure, recordATypedSymbol
-
Constructor Details
-
CheckTypeCovariance
CheckTypeCovariance(SymbolsAndScopes symbolsAndScopes, ErrorListener errorListener)
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceConsumer<CovarianceCheckData>
-