language: C# (mono-2.8)
date: 602 days 13 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
using System;
using System.Collections.Generic;
 
public class Animal {}
public class Cat : Animal {}
 
public class Test
{
        public static void Main()
        {
             Animal[] animals = new Cat[5];             
        }
}
prog.cs(11,23): warning CS0219: The variable `animals' is assigned but its value is never used
Compilation succeeded - 1 warning(s)