Files
codeql/csharp/ql/test/library-tests/csharp9/global/GlobalStmt.cs
2021-12-10 10:42:29 +01:00

24 lines
268 B
C#

/*
Global statements are not allowed in 'library' target.
*/
using System;
[assembly: Attr] // not a global stmt
Console.WriteLine("1");
Console.WriteLine("2");
M();
void M()
{
}
public class Attr : Attribute
{
void M1()
{
Console.WriteLine("3");
}
}