repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
add comment
[mcs.git]
/
tests
/
gtest-implicitarray-02.cs
blob
15eb48e8f64b63a8500bdf6082fd04111aec4c07
1
class
MyString
2
{
3
public static implicit operator string
(
MyString s
)
4
{
5
return
"ggtt"
;
6
}
7
}
8
9
public class
Test
10
{
11
static int
Main
()
12
{
13
var
v
=
new
[]
{ new MyString (), "a" }
;
14
if
(
v
[
0
] !=
"ggtt"
)
15
return
1
;
16
return
0
;
17
}
18
}