aboutsummaryrefslogtreecommitdiff
path: root/src/test/examples/uniquemembernames/Shaking.java
blob: a1b90bae68e391bf4adee322964628ffcab97180 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (c) 2017, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package uniquemembernames;

import java.util.Arrays;
import java.util.List;

public class Shaking {

  public static void main(String[] args) {
    List<BaseCls> bases = Arrays.asList(new ClsA(), new ClsB());
    for (BaseCls base : bases) {
      base.c();
      base.foo();
      base.bar();
    }
    AnotherCls aa = new AnotherCls();
    aa.b();
    aa.foo();
  }

}