blob: a13a18b772ce10d09d9e8b412bcb1368d9e59c44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// CS1954: The best overloaded collection initalizer method `Data.Add(ref int)' cannot have `ref' or `out' modifier
// Line: 20
using System;
using System.Collections;
class Data : IEnumerable
{
public IEnumerator GetEnumerator () { return null; }
public void Add (ref int b)
{
}
}
public class Test
{
static void Main ()
{
var c = new Data { 1 };
}
}
|