projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #5714 from alexischr/update_bockbuild
[mono.git]
/
mcs
/
tests
/
gtest-639.cs
1
class A<T> where T : CB, IA
2
{
3
void Foo (T t)
4
{
5
t.Prop = 3;
6
long l = t.Prop2;
7
t["1"] = "2";
8
}
9
}
10
11
class A2<T, U>
12
where T : CB, U
13
where U : IA
14
{
15
void Foo (T t)
16
{
17
t.Prop = 3;
18
long l = t.Prop2;
19
t["1"] = "2";
20
}
21
}
22
23
class CB : CA
24
{
25
}
26
27
class CA
28
{
29
public int Prop { get; set; }
30
31
public string this [byte b] { get { return ""; } }
32
}
33
34
interface IA
35
{
36
string Prop { get; set; }
37
long Prop2 { get; }
38
39
string this [string b] { get; set; }
40
}
41
42
class X
43
{
44
public static void Main ()
45
{
46
}
47
}