Cyril Scetbon
07/09/2021, 4:41 AMexpecting an element
val res = api.getSObject("Account", "0015000000VALDtAAP").as(Account::class)
^
It seems there is an internal kotlin function/keyword as
that prevents me from calling that function on my class. For instance the class String can get the same error
>>> val x = "10"
>>> x.f1("ola")
error: unresolved reference: f1
x.f1("ola")
^
>>> x.as("ola")
error: expecting an element
x.as("ola")
^
I should get the same error but nope, any idea what’s going on ?Kirill Grouchnikov
07/09/2021, 4:43 AMSourabh Rawat
07/09/2021, 5:46 AM`as`
?Dave K
07/09/2021, 6:52 AMCyril Scetbon
07/09/2021, 1:40 PM