KT-847 Allow "this" without {} in string templates

This commit is contained in:
Andrey Breslav
2011-12-15 20:54:30 +04:00
committed by Nikolay Krasko
parent 94ad86e79e
commit 55c11d0f44
9 changed files with 476 additions and 393 deletions
@@ -0,0 +1,3 @@
fun <T> T.mustBe(t : T) {
"$this must be$<!SYNTAX!>as<!>$t"
}