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:
committed by
Roman Golyshev
parent
e8524137c3
commit
3122760c49
+7
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user