mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
IDEA-123294 Make live templates for statement work properly inside shorten variant of lambda expression
This commit is contained in:
@@ -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>));
|
||||
}}
|
||||
'''
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user