[FIR JS] Fix a typo in the dynamic upper bound check
`FirDynamicTypeRef` is the unresolved version, and after resolution it becomes `FirResolvedTypeRef` with `ConeDynamicType`.
This commit is contained in:
+1
-1
@@ -146,7 +146,7 @@ object FirTypeParameterBoundsChecker : FirTypeParameterChecker() {
|
||||
|
||||
private fun checkDynamicBounds(declaration: FirTypeParameter, context: CheckerContext, reporter: DiagnosticReporter) {
|
||||
declaration.bounds.forEach { bound ->
|
||||
if (bound is FirDynamicTypeRef) {
|
||||
if (bound.coneType is ConeDynamicType) {
|
||||
reporter.reportOn(bound.source, FirErrors.DYNAMIC_UPPER_BOUND, context)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user