Issue 34546. Get ClassElementImpl a way that support element handles.

R=brianwilkerson@google.com

Bug: https://github.com/dart-lang/sdk/issues/34546
Change-Id: Ib14afd83db49cbcd3b9a5d6832689dec9dfd5c57
Reviewed-on: https://dart-review.googlesource.com/75986
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>
diff --git a/pkg/analyzer/lib/src/dart/element/type.dart b/pkg/analyzer/lib/src/dart/element/type.dart
index 5e4e7bd..fd8c454 100644
--- a/pkg/analyzer/lib/src/dart/element/type.dart
+++ b/pkg/analyzer/lib/src/dart/element/type.dart
@@ -1784,7 +1784,8 @@
           if (!concrete || acceptAbstract || !result.isAbstract) {
             return result;
           }
-          ClassElementImpl elementImpl = type.element;
+          ClassElementImpl elementImpl =
+              AbstractClassElementImpl.getImpl(type.element);
           if (elementImpl.hasNoSuchMethod) {
             return result;
           }