f3e3aab35a
Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
22 lines
293 B
C#
22 lines
293 B
C#
using System;
|
|
using System.Linq.Expressions;
|
|
|
|
class ConversionTest
|
|
{
|
|
static int Main ()
|
|
{
|
|
byte b = 3;
|
|
|
|
FormattableString c1;
|
|
c1 = $"{b}";
|
|
if (c1.Format != "{0}")
|
|
return 1;
|
|
|
|
IFormattable c2;
|
|
c2 = $"format { b }";
|
|
if (!(c2 is FormattableString))
|
|
return 2;
|
|
|
|
return 0;
|
|
}
|
|
} |