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
[interp] Reduce computation under calc_section mutex
[mono-project.git]
/
mcs
/
tests
/
test-interpolation-02.cs
blob
ac03cea49d6d27d8c7f23685eb825c54464d15c8
1
using
System
;
2
using
System
.
Linq
.
Expressions
;
3
4
class
ConversionTest
5
{
6
static int
Main
()
7
{
8
byte
b
=
3
;
9
10
FormattableString c1
;
11
c1
= $
"
{b}
"
;
12
if
(
c1
.
Format
!=
"
{0}
"
)
13
return
1
;
14
15
IFormattable c2
;
16
c2
= $
"format
{ b }
"
;
17
if
(!(
c2
is
FormattableString
))
18
return
2
;
19
20
return
0
;
21
}
22
}