IDEA-123294 Make live templates for statement work properly inside shorten variant of lambda expression

This commit is contained in:
peter
2016-01-28 16:30:04 +01:00
parent 734d460bfd
commit f623ac8ede
4 changed files with 63 additions and 0 deletions
@@ -1098,4 +1098,16 @@ class Foo {
}
""")
}
public void "test sout template in expression lambda"() {
myFixture.configureByText 'a.java', '''class Foo {{
strings.stream().forEach(o -> sout<caret>);
}}
'''
myFixture.type('\t')
myFixture.checkResult '''class Foo {{
strings.stream().forEach(o -> System.out.println(<caret>));
}}
'''
}
}