Convert to anonymous object: don't remove type arguments

#KT-30208 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-03-28 00:12:35 +09:00
committed by Dmitry Gridin
parent 075620daad
commit f2c7b6b8c4
10 changed files with 60 additions and 4 deletions
@@ -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 ""
}
}