postfix template fix ternary operator + test

This commit is contained in:
Andrey Starovoyt
2014-07-18 19:48:54 +04:00
parent c6ff466602
commit 6bf1409b85
4 changed files with 24 additions and 5 deletions
@@ -0,0 +1,5 @@
public class Foo {
void m(String s) {
Object o = s.isEmpty() ? s.concat("a").cast<caret> : s.concat("b");
}
}
@@ -0,0 +1,5 @@
public class Foo {
void m(String s) {
Object o = s.isEmpty() ? (() s.concat("a")) : s.concat("b");
}
}