projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #656 from LogosBible/collection_lock
[mono.git]
/
mono
/
tests
/
verifier
/
valid_generic_exception_catch_clause_type.cs
1
public class MyException<T> : System.Exception
2
{
3
}
4
5
public class A<T>
6
{
7
public void F()
8
{
9
try
10
{
11
}
12
catch(MyException<T> ex)
13
{
14
System.Console.WriteLine(ex.ToString());
15
}
16
}
17
}
18
19
public class B
20
{
21
public static void Main(string[] args)
22
{
23
A<string> a = new A<string>();
24
a.F();
25
}
26
}