Redundant SAM-constructor: highlight nested class name with outer class
So #KT-11156 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
204c68070a
commit
13356d32fd
@@ -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 { })
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun test() {
|
||||
Foo.foo({ })
|
||||
}
|
||||
Reference in New Issue
Block a user