Redundant SAM-constructor: highlight nested class name with outer class

So #KT-11156 Fixed
This commit is contained in:
Toshiaki Kameyama
2018-04-17 07:57:10 +03:00
committed by Mikhail Glukhikh
parent 204c68070a
commit 13356d32fd
6 changed files with 31 additions and 1 deletions
@@ -0,0 +1 @@
org.jetbrains.kotlin.idea.inspections.RedundantSamConstructorInspection
@@ -0,0 +1,8 @@
public class Foo {
public interface Bar {
void baz();
}
public static void foo(Bar bar) {
bar.baz();
}
}
@@ -0,0 +1,3 @@
fun test() {
Foo.foo(<caret>Foo.Bar { })
}
@@ -0,0 +1,3 @@
fun test() {
Foo.foo({ })
}