Fix for KT-16411, KT-16412: Exception from compiler when try call SAM constructor where argument is callable reference to nested class inside object
#Fixed KT-16411 #Fixed KT-16412
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// FILE: 1.kt
|
||||
|
||||
inline fun <R> startFlow(
|
||||
flowConstructor: (String) -> R
|
||||
): R {
|
||||
return flowConstructor("OK")
|
||||
}
|
||||
|
||||
object Foo {
|
||||
class Requester(val dealToBeOffered: String)
|
||||
}
|
||||
|
||||
// FILE: 2.kt
|
||||
|
||||
fun box(): String {
|
||||
return startFlow(Foo::Requester).dealToBeOffered
|
||||
}
|
||||
Reference in New Issue
Block a user