Question for someone more familiar with the Kotlin...
# kotlin-dsl
k
Question for someone more familiar with the Kotlin language that is tangentially related to the Kotlin DSL:
Copy code
val service = project.gradle.sharedServices.registrations.named<BuildServiceRegistration<MyService, *>>("myService").flatMap { it.getService } // OK

val service2 = project.gradle.sharedServices.registrations.named<BuildServiceRegistration<MyService, *>>("myService").flatMap { it.service } // Error
Both of these should be
Provider<MyService>
, but the second one errors due to not having type information on the parameters object or somesuch. Why is that?