https://kotlinlang.org logo
#language-proposals
Title
# language-proposals
a

aerb

04/12/2019, 1:58 PM
FWIW below compiles.
Copy code
fun build(builder: (Context) -> View): View { TODO() }

val a = build(::View)
k

karelpeeters

04/12/2019, 3:19 PM
This may be something the new type inference system allows for, I'm not sure. I think there's an option to enable it, maybe try that?
a

aerb

04/12/2019, 4:02 PM
I wasn't aware of this! There is a compiler flag?
k

karelpeeters

04/12/2019, 4:03 PM
-Xnew-inference
🙏 1
a

aerb

04/12/2019, 4:50 PM
Hmm unfortunately with the new-inference this still appears to not compile.
k

karelpeeters

04/12/2019, 4:51 PM
Good to know, was worth a shot simple smile
a

aerb

04/12/2019, 4:51 PM
Do you think this makes sense as a feature request or PR?