replace type with var: allow anonymous type replacement (IDEA-210534)

though interface to implementation replacement may lead to implementation type propagation, anonymous type can't be propagated so it's safe to be used as var

GitOrigin-RevId: cae306614efcb92551f2aa907f8d66e1bd2db930
This commit is contained in:
Anna Kozlova
2019-04-28 16:02:06 +03:00
committed by intellij-monorepo-bot
parent 5dc3290ea3
commit 38f5055d00
3 changed files with 28 additions and 1 deletions
@@ -0,0 +1,9 @@
// "Replace explicit type with 'var'" "true"
class MyTest {
private void m() {
Ru<caret>nnable r = new Runnable() {
@Override
public void run() {}
};
}
}