get rid of redundant space in error message

This commit is contained in:
Anna.Kozlova
2018-11-21 15:54:15 +01:00
parent 06daef817b
commit b015644d7a
14 changed files with 23 additions and 22 deletions
@@ -18,7 +18,7 @@ class MyTest {
void m(int i) {
String s = foo(switch (i) {default -> "str";});
String s1 = <error descr="Incompatible types. Required String but 'foo' was inferred to T:
no instance(s) of type variable(s) exist so that Object conforms to String">foo(switch (i) {case 1 -> new Object(); default -> "str";});</error>
no instance(s) of type variable(s) exist so that Object conforms to String">foo(switch (i) {case 1 -> new Object(); default -> "str";});</error>
String s2 = foo(() -> switch (i) {
default -> "str";
});