Ray Rahke
05/07/2024, 7:41 AMget() = { return 7 }Sam
05/07/2024, 7:49 AMget() = 7 or get() { return 7 }. Unless you're actually trying to return a () -> Int function.Ray Rahke
05/07/2024, 7:50 AMRay Rahke
05/07/2024, 7:50 AMSam
05/07/2024, 7:53 AM= at the start. You might also need an explicit type, so val x: Int get() { … }. Do you still see an error after that?Ray Rahke
05/07/2024, 7:53 AM