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,6 @@
|
||||
// "Convert to anonymous object" "true"
|
||||
interface B<T, U> {
|
||||
fun bar(x: T): U
|
||||
}
|
||||
|
||||
val b = <caret>B<Int, String> { "" }
|
||||
@@ -0,0 +1,10 @@
|
||||
// "Convert to anonymous object" "true"
|
||||
interface B<T, U> {
|
||||
fun bar(x: T): U
|
||||
}
|
||||
|
||||
val b = object : B<Int, String> {
|
||||
override fun bar(x: Int): String {
|
||||
return ""
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user