Add more tests for RedundantSamConstructorInspection

- All those tests already pass, they are needed to fix the behaviour of the inspection before the changes
This commit is contained in:
Roman Golyshev
2020-02-07 12:10:11 +03:00
committed by Roman Golyshev
parent e8524137c3
commit 3122760c49
12 changed files with 141 additions and 0 deletions
@@ -0,0 +1,7 @@
// PROBLEM: none
fun JavaTest.usage() {
fun foo(a: () -> Unit) {}
foo(JavaTest.FunInterface1<caret> { 10 }) // local foo will be used without SAM constructor
}