LVTI: SOE for var with conditional initializer

EA-114618 - SOE: CachedValueBase.getValueWithLock
This commit is contained in:
Anna.Kozlova
2018-01-12 10:49:32 +01:00
parent 6c926543e2
commit 5f5513c966
3 changed files with 5 additions and 2 deletions
@@ -29,6 +29,7 @@ class Main {
<error descr="Cannot infer type: lambda expression requires an explicit target type">var</error> f = () -> "hello";
<error descr="Cannot infer type: method reference requires an explicit target type">var</error> m = Main::localVariableDeclaration;
<error descr="Cannot infer type: variable initializer is 'null'">var</error> g = null;
var runnable = true ? <error descr="<lambda expression> is not a functional interface">() -> {}</error> : <error descr="<lambda expression> is not a functional interface">() -> {}</error>;
}
private void forEachType(String[] strs, Iterable<String> it, Iterable raw) {