tophat2d / tophat

:tophat: a 2d game library for Umka
https://tophat2d.dev
BSD 3-Clause "New" or "Revised" License
73 stars 5 forks source link

Playground: selecting broken examples in a particular order causes a crash with a weird error message #173

Closed vtereshkov closed 7 months ago

vtereshkov commented 8 months ago

Steps to reproduce (assuming #172 is not fixed):

Result:

error: /playground_main.um (12, 39): Incompatible types Font and { Font Err }
error: /window.um (128): Pointer is null

    Stack trace:
       /window.um:000128: cycle
status: Exception thrown, see JavaScript console
Program terminated with exit(-1)

Expected:

error: /playground_main.um (12, 39): Incompatible types Font and { Font Err }
vtereshkov commented 7 months ago

Since #172 is (almost) fixed, I can no longer reproduce the current issue.