projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
2007-10-17 Jonathan Pobst <monkey@jpobst.com>
[mono.git]
/
mcs
/
tests
/
gtest-212.cs
1
public interface SomeInterface
2
{
3
bool Valid { get; }
4
}
5
6
public struct SomeStruct : SomeInterface
7
{
8
public bool Valid {
9
get {
10
return false;
11
}
12
}
13
}
14
15
public class Test
16
{
17
public static void Fun<T>(T t) where T:SomeInterface {
18
bool a = t.Valid;
19
}
20
21
static void Main()
22
{
23
Fun(new SomeStruct());
24
}
25
}