summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0136-19.cs
blob: 7b81852d4f985bccfe9b58aa90a7f08ea9a6aae6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// CS0136: A local variable named `arg' cannot be declared in this scope because it would give a different meaning to `arg', which is already used in a `parent or current' scope to denote something else
// Line: 11
// Compiler options: -langversion:experimental

using System;

partial class PC
{
    Func<int, int> f = (arg) => 1;
}

partial class PC (int arg) 
{
}