projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* CheckBox.cs: Do not change the status of a checkbox when there
[mono.git]
/
mcs
/
tests
/
test-213.cs
1
using System;
2
3
class MyTest {
4
public static void Main(String[] args) {
5
S s1 = new S(11);
6
I s2 = s1; // Implicit boxing S-->I
7
S s3 = (S)s2; // Explicit unboxing I-->S
8
s3.Print(); // Should print 11, does not
9
}
10
}
11
12
interface I {
13
void Print();
14
}
15
16
struct S : I {
17
public int i;
18
public S(int i) {
19
this.i = i;
20
}
21
public void Print() {
22
Console.WriteLine(i);
23
}
24
}