https://kotlinlang.org logo
Title
d

Diego Almeida de Oliveira

05/13/2020, 12:10 PM
I couldn't find anything about extension properties, neither in the documentation, nor issues on Github, nor stackoverflow, etc. I wonder if this is something so clear for everyone that doesn't need explanation and I'm just missing something
b

Big Chungus

05/13/2020, 12:29 PM
kotlin property in itself translates to generated getters and setters. So extension property == extension method in the end
d

Diego Almeida de Oliveira

05/13/2020, 12:31 PM
Yeah you are right. I realized it after checking the bytecode. But do you know how to mock it?
b

Big Chungus

05/13/2020, 12:32 PM
No, but I imagine it's gonna be simmilar to extension method mocking
d

Diego Almeida de Oliveira

05/13/2020, 12:35 PM
Maybe. I was able to mock extension function but not extension property though.