-
-
Notifications
You must be signed in to change notification settings - Fork 115
Closed
Description
Congrats on the new release @jtkiesel! However, there's a nasty regression in certain cases.
Prettier-Java 2.7.6
Playground link 1
Playground link 2
--print-width 140Input:
public abstract class Foo implements MyInterface {
@Override public String foo() {
return true ? "" :
foo.method2(r ->
Context.a().m(1, a -> {
code;
})
);
}
}Output:
public abstract class Foo implements MyInterface {
@Override
public String foo() {
return true
? ""
: foo.method2(r ->
Context.a().m(1, a -> {
code;
})
);
}
}Expected behavior:
public abstract class Foo implements MyInterface {
@Override
public String foo() {
return true
? ""
: foo.method2(r ->
Context.a().m(1, a -> {
code;
})
);
}
}The two playground links show regressions for these two previous cases (but this time in a ternary):
I'm not sure there aren't more cases that regressed.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels