Convert to anonymous object: don't remove type arguments
#KT-30208 Fixed
This commit is contained in:
committed by
Dmitry Gridin
parent
075620daad
commit
f2c7b6b8c4
@@ -0,0 +1,3 @@
|
||||
public interface A <T, U> {
|
||||
U foo(T x);
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
public interface A <T, U> {
|
||||
U foo(T x);
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
val a = <caret>A<Int, String> { "" }
|
||||
@@ -0,0 +1,5 @@
|
||||
val a = object : A<Int, String> {
|
||||
override fun foo(it: Int): String {
|
||||
return ""
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user