[Test] Fix diagnostics arguments rendering when quotes are present

Non-capturing `(?:)` was now needed to avoid
getting an additional group that only
contains the last symbol before the closing `"`.

^KT-62711 Fixed
This commit is contained in:
Nikolay Lunyak
2023-10-19 15:19:03 +03:00
committed by Space Team
parent 54de11cb58
commit b8e2a17de1
7 changed files with 19 additions and 9 deletions
@@ -11,5 +11,5 @@ val x = {
}
fun test() {
handle(<!UNSUPPORTED_FEATURE("The feature "unit conversions on arbitrary expressions" is experimental and should be enabled explicitly. You can also change the original type of this expression to (...) -> Unit")!>x<!>)
handle(<!UNSUPPORTED_FEATURE("The feature \"unit conversions on arbitrary expressions\" is experimental and should be enabled explicitly. You can also change the original type of this expression to (...) -> Unit")!>x<!>)
}