mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 17:02:10 -10:00
* const.cs (Error_ConstantCanBeInitializedWithNullOnly): Share a message. * statement.cs (Block.ResolveMeta): Look for wrong object constants in the blocks too. svn path=/trunk/mcs/; revision=58238
8 lines
172 B
C#
8 lines
172 B
C#
// cs0134.cs: `C.o': the constant of reference type other than string can only be initialized with null
|
|
// Line: 6
|
|
|
|
public class C
|
|
{
|
|
public const object o = "12345";
|
|
}
|