x?.f is optional chaining: it only applies when x is a T?. This value is never missing,
so use a plain ..
Wrong#
fn main() { print(5?.show()) }Fixed#
fn main() { print(5.show()) }Common causes#
?.added defensively: Auk tracks optionals in types, so it's never needed on a plain value.- A function that used to return
T?and no longer does.