summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/assign.java
blob: ff288c93b793bbd4d3ed07b5d8f79b4c1f4f6bef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Test for an array assignment bug we've had.

public class assign
{
  public static class base
  {
  }

  public static class derived extends base
  {
  }

  public static void main(String[] args)
  {
    base[][] x1 = new base[3][3];
    derived[] x2 = new derived[3];
    x1[0] = x2;
  }
}