Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Test for bug #440819.

svn path=/trunk/mono/; revision=117767
  • Loading branch information...
commit ab03637ef22ebd0c363a06b06be4d339aae6eb26 1 parent e00ca2d
Paolo Molaro illupus authored
1  mono/tests/Makefile.am
@@ -286,6 +286,7 @@ BASE_TEST_CS_SRC= \
286 286 generic-type-builder.2.cs \
287 287 generic-synchronized.2.cs \
288 288 generic-delegate-ctor.2.cs \
  289 + generic-array-iface-set.2.cs \
289 290 bug-431413.2.cs \
290 291 generic-virtual-invoke.2.cs \
291 292 recursive-generics.2.cs \
19 mono/tests/generic-array-iface-set.2.cs
... ... @@ -0,0 +1,19 @@
  1 +using System;
  2 +using System.Collections.Generic;
  3 +
  4 +class A {
  5 + static int Main ()
  6 + {
  7 + A [] aa = new A [1];
  8 + IList<object> io = aa;
  9 + try {
  10 + io [0] = new object ();
  11 + A a = aa [0];
  12 + Console.WriteLine ("{0}", a.GetType ());
  13 + } catch (ArrayTypeMismatchException) {
  14 + return 0;
  15 + }
  16 + return 1;
  17 +
  18 + }
  19 +}

0 comments on commit ab03637

Please sign in to comment.
Something went wrong with that request. Please try again.