Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

* motoko (`moc`)

* Fix the `M0223` warning check for redundant type instantiations to avoid false positives (#5605).

* Use `self` parameter, not `Self` type, to enable contextual dot notation (#5574).

* Enable parser recovery to gather more syntax errors at once (previously only enabled for `moc.js`) (#5589).
Expand Down
4 changes: 4 additions & 0 deletions src/lang_utils/diag.ml
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,7 @@ let flush_messages : 'a result -> 'a option = function
let run r = match flush_messages r with
| None -> exit 1
| Some x -> x

type save = messages
let save_store s = !s
let load_store s msgs = s := msgs
4 changes: 4 additions & 0 deletions src/lang_utils/diag.mli
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,7 @@ val is_error_free : msg_store -> bool
val add_msg : msg_store -> message -> unit
val add_msgs : msg_store -> messages -> unit
val with_message_store : ?allow_errors:bool -> (msg_store -> 'a option) -> 'a result

type save
val save_store : msg_store -> save
val load_store : msg_store -> save -> unit
Loading