summaryrefslogtreecommitdiff
path: root/tests/src/JIT/Regression/CLR-x86-JIT/v2.2/ddb/ddb188478/DDB188478.cs
blob: 76a6f29de924e633871f18b41f76e8feca3a4f45 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;

internal class Test
{
    private static int Main()
    {
        Test[] test = new Test[0];
        IList<Test> ls = (IList<Test>)test;
        ReadOnlyCollection<Test> roc = new ReadOnlyCollection<Test>(ls);
        Console.WriteLine(roc.Count);
        return 100;
    }
}