add ISafeSerializationData
[mcs.git] / tests / test-213.cs
blob3492c14059e6ef960cc89e364cf78adff4ab64fc
1 using System;
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
12 interface I {
13 void Print();
16 struct S : I {
17 public int i;
18 public S(int i) {
19 this.i = i;
21 public void Print() {
22 Console.WriteLine(i);