summaryrefslogtreecommitdiff
path: root/mcs/errors/cs0136-18.cs
blob: 7c2bff9836fd33db07bca58792d74a26030f825f (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;

class A (Func<int, int> barg)
{
}

class B (int arg) 
	: A ((arg) => 1)
{
}