mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
13 lines
335 B
C#
13 lines
335 B
C#
// cs0021.cs: Cannot apply indexing with [] to an expression of type `int'
|
|
// Line: 9
|
|
using System;
|
|
|
|
class ErrorCS0021 {
|
|
public static void Main () {
|
|
int i = 0;
|
|
Console.WriteLine ("Test for ERROR CS0021: You can't use the indexer operator with a type that doesn't support it");
|
|
Console.WriteLine ("Get i[2]: {0}", i[2]);
|
|
}
|
|
}
|
|
|