projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* Form.cs: Make the fix for #80775 windows-only (fixes #81957).
[mono.git]
/
mcs
/
errors
/
gcs0413.cs
1
//gcs0413.cs: The as operator requires that the `T' type parameter be constrained by a class
2
// Line: 7
3
4
public class SomeClass {}
5
6
public class Foo<T> {
7
public T Do (object o) { return o as T; }
8
}
9
10
class Driver {
11
static void Main ()
12
{
13
Foo<SomeClass> f = new Foo<SomeClass> ();
14
f.Do ("something");
15
}
16
}
17
18