You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/compiler/crystal/semantic/exception.cr
+2
Original file line number
Diff line number
Diff line change
@@ -232,6 +232,8 @@ module Crystal
232
232
io << colorize("instance variable '#{nil_reason.name}' was used before it was initialized in one of the 'initialize' methods, rendering it nilable").bold
233
233
when:used_self_before_initialized
234
234
io << colorize("'self' was used before initializing instance variable '#{nil_reason.name}', rendering it nilable").bold
235
+
when:initialized_in_rescue
236
+
io << colorize("instance variable '#{nil_reason.name}' is initialized inside a begin-rescue, so it can potentially be left uninitialized if an exception is raised and rescued").bold