Files
codeql/csharp/ql/test/library-tests/csharp7.2/csharp72.cs
2018-08-02 17:53:23 +01:00

51 lines
548 B
C#

// semmle-extractor-options: /langversion:latest
using System;
class InModifiers
{
struct S
{
}
void F(in S s)
{
}
}
class RefReadonlyReturns
{
int s;
ref readonly int F()
{
return ref s;
}
delegate ref readonly int Del();
}
readonly struct ReadonlyStruct
{
}
ref struct RefStruct
{
}
readonly ref struct ReadonlyRefStruct
{
}
class NumericLiterals
{
int binaryValue = 0b_0101_0101;
}
class PrivateProtected
{
private protected int X = 1;
private protected void F() { }
}