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-24 21:02:50 +02:00
committed by intellij-monorepo-bot
parent 5dc3290ea3
commit 38f5055d00
3 changed files with 28 additions and 1 deletions

View File

@@ -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() {}
};
}
}