projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #3609 from xmcclure/checked-imageset
[mono.git]
/
mcs
/
mcs
/
cs-parser.jay
diff --git
a/mcs/mcs/cs-parser.jay
b/mcs/mcs/cs-parser.jay
index 6783a7edbb672ef70e00d3684e3f35427ea12eab..bb2bd6e19718cad38c3cf37e8eb131b1b6581685 100644
(file)
--- a/
mcs/mcs/cs-parser.jay
+++ b/
mcs/mcs/cs-parser.jay
@@
-3351,10
+3351,16
@@
boolean_literal
interpolated_string
: INTERPOLATED_STRING interpolations INTERPOLATED_STRING_END
{
interpolated_string
: INTERPOLATED_STRING interpolations INTERPOLATED_STRING_END
{
+ if (lang_version < LanguageVersion.V_6)
+ FeatureIsNotAvailable (GetLocation ($1), "interpolated strings");
+
$$ = new InterpolatedString ((StringLiteral) $1, (List<Expression>) $2, (StringLiteral) $3);
}
| INTERPOLATED_STRING_END
{
$$ = new InterpolatedString ((StringLiteral) $1, (List<Expression>) $2, (StringLiteral) $3);
}
| INTERPOLATED_STRING_END
{
+ if (lang_version < LanguageVersion.V_6)
+ FeatureIsNotAvailable (GetLocation ($1), "interpolated strings");
+
$$ = new InterpolatedString ((StringLiteral) $1, null, null);
}
;
$$ = new InterpolatedString ((StringLiteral) $1, null, null);
}
;