Simplify ImplementationBodyCodegen#generateToArray

- don't do anything for interfaces because there's no point in generating
  abstract methods which are already abstract in supertypes
- don't use getDeclaredFunctionByRawSignature, check function signature
  manually instead
- don't use isOrOverridesSynthesized because 'toArray' is never synthesized
This commit is contained in:
Alexander Udalov
2016-05-18 11:05:57 +03:00
parent b208995d73
commit 2200bfcc85
3 changed files with 56 additions and 57 deletions
@@ -2089,8 +2089,6 @@ public abstract interface class kotlin/text/MatchGroupCollection : java/util/Col
public abstract fun remove (Lkotlin/text/MatchGroup;)Z
public abstract fun removeAll (Ljava/util/Collection;)Z
public abstract fun retainAll (Ljava/util/Collection;)Z
public abstract fun toArray ()[Ljava/lang/Object;
public abstract fun toArray ([Ljava/lang/Object;)[Ljava/lang/Object;
}
public abstract interface class kotlin/text/MatchResult {