projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[CI] ignore appdomain-unload-asmload.exe on interp and full-aot
[mono.git]
/
mono
/
tests
/
verifier
/
valid_generic_type_definition_on_boxing_position.cs
1
using System;
2
3
public class Bar<T> {
4
public int Z {get;set;}
5
}
6
7
public class Foo<T> {
8
public T Test {get;set;}
9
public int Z (Bar<T> t) {
10
return t.Z;
11
}
12
}
13
14
public struct Cat<T> {
15
T t;
16
public void Test () {
17
Console.WriteLine (GetType ());
18
}
19
}
20
21
22
class Driver {
23
static void Main () {
24
Cat<int> c = new Cat<int> ();
25
c.Test ();
26
new Foo<double> ().Z(new Bar<double>());
27
}
28
}