Fix for KT-2789: NoSuchMethodError when calling trait function with default arguments that returns generic type, KT-9428 Abstract method with one parameter and one default parameter produces NoSuchMethodError, KT-9924 NoSuchMethod when replacing generic with specific type
#KT-2789 Fixed #KT-9428 Fixed #KT-9924 Fixed
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
abstract class A<T> {
|
||||
abstract fun test(a: T, b:Boolean = false) : String
|
||||
}
|
||||
|
||||
class B : A<String>() {
|
||||
override fun test(a: String, b: Boolean): String {
|
||||
return a
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
return B().test("OK")
|
||||
}
|
||||
Reference in New Issue
Block a user