Просмотр исходного кода

fix incorrect condition in InSameMatchFirst (#2773)

fixes a typo
Manmeet Singh 3 лет назад
Родитель
Сommit
7eabd0a64a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      explorer/interpreter/impl_scope.cpp

+ 1 - 1
explorer/interpreter/impl_scope.cpp

@@ -276,7 +276,7 @@ static auto InSameMatchFirst(Nonnull<const Witness*> a,
                              Nonnull<const Witness*> b) -> bool {
   const auto* impl_a = dyn_cast<ImplWitness>(a);
   const auto* impl_b = dyn_cast<ImplWitness>(b);
-  if (!impl_b || !impl_b) {
+  if (!impl_a || !impl_b) {
     return false;
   }