repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git]
/
mcs
/
tests
/
test-213.cs
blob
3492c14059e6ef960cc89e364cf78adff4ab64fc
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
}