a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
17 lines
287 B
C#
17 lines
287 B
C#
// CS0122: `Foo.this[int]' is inaccessible due to its protection level
|
|
// Line: 14
|
|
|
|
using System;
|
|
|
|
public class Foo {
|
|
private int this[int index] { get { return index; } }
|
|
}
|
|
|
|
public class Bar {
|
|
public static void Main ()
|
|
{
|
|
Foo foo = new Foo ();
|
|
Console.WriteLine (foo[5]);
|
|
}
|
|
}
|