Add quickfix for "Interface doesn't have constructors" #KT-17687 Fixed
This commit is contained in:
committed by
Alexey Sedunov
parent
b5ba475696
commit
e2945b1d12
@@ -0,0 +1,12 @@
|
||||
// "Convert to anonymous object" "true"
|
||||
interface I {
|
||||
fun foo(a: String, b: Int): Int
|
||||
}
|
||||
|
||||
fun test() {
|
||||
object : I {
|
||||
override fun foo(a: String, b: Int): Int {
|
||||
return 1
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user