fe777c5c82
Former-commit-id: 6a76a29bd07d86e57c6c8da45c65ed5447d38a61
72 lines
1.2 KiB
C#
72 lines
1.2 KiB
C#
using System.Runtime.CompilerServices;
|
|
using System;
|
|
|
|
class TestCallerLineNumber
|
|
{
|
|
static void Test ([CallerLineNumber] object line = null)
|
|
{
|
|
}
|
|
|
|
static void Test ([CallerLineNumber] decimal line = 1)
|
|
{
|
|
}
|
|
|
|
static void Test ([CallerLineNumber] double line = 1)
|
|
{
|
|
}
|
|
|
|
static void Test ([CallerLineNumber] float line = 1)
|
|
{
|
|
}
|
|
|
|
static void Test ([CallerLineNumber] int line = 1)
|
|
{
|
|
}
|
|
|
|
static void Test ([CallerLineNumber] uint line = uint.MaxValue)
|
|
{
|
|
}
|
|
|
|
static void Test ([CallerLineNumber] long line = 1)
|
|
{
|
|
}
|
|
|
|
static void Test ([CallerLineNumber] ulong line = 1)
|
|
{
|
|
}
|
|
|
|
static void Test ([CallerLineNumber] decimal? line = 1)
|
|
{
|
|
}
|
|
|
|
static void Test ([CallerLineNumber] double? line = 1)
|
|
{
|
|
}
|
|
|
|
static void Test ([CallerLineNumber] float? line = 1)
|
|
{
|
|
}
|
|
|
|
static void Test ([CallerLineNumber] int? line = 1)
|
|
{
|
|
}
|
|
|
|
static void Test ([CallerLineNumber] uint? line = uint.MaxValue)
|
|
{
|
|
}
|
|
|
|
static void Test ([CallerLineNumber] long? line = 1)
|
|
{
|
|
}
|
|
|
|
static void Test ([CallerLineNumber] ulong? line = 1)
|
|
{
|
|
}
|
|
}
|
|
|
|
class D
|
|
{
|
|
public static void Main ()
|
|
{
|
|
}
|
|
} |