Quick Fixes: Add test for KT-5922 (QuickFix to change lambda signature doesn't work with SAM conversion)
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
// "Change the signature of function literal" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
Test<String>().perform("") {(s: String?, s1: String?) -> }
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
// "Change the signature of function literal" "true"
|
||||
// DISABLE-ERRORS
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
Test<String>().perform("") <caret>{ }
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
class Test<T> {
|
||||
public static interface Action<T> {
|
||||
void call(T t, String name);
|
||||
}
|
||||
|
||||
void perform(T t, Action<T> subscribe) {
|
||||
subscribe.call(t, "");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user