Seth Madison05/01/2023, 10:36 PM
to produce a
, and then
it to an exported class. This works great, and allows for code sharing across targets (contrasted with
). This looks like: The problem is that you end up with an incomplete instance of the class, and so if there are extension functions defined on the class, they’ll crash at runtime. I would like to define a
class that cannot receive extensions so that users of the class don’t accidentally write code that will crash at runtime!
Jan05/05/2023, 7:28 PM