Skip to content

Commit

Permalink
Fix #526
Browse files Browse the repository at this point in the history
  • Loading branch information
alex999990009 committed Jul 5, 2024
1 parent fcb2306 commit 271fee3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/kotlin/org/arend/typechecking/error/ErrorService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,11 @@ class ErrorService : ErrorReporter {
val arendErrors = typecheckingErrors[file] ?: return emptyList()

val list = ArrayList<Pair<GeneralError, PsiElement>>()
for (arendError in arendErrors) {
arendError.cause?.let {
list.add(Pair(arendError.error, it))
synchronized(arendErrors) {
for (arendError in arendErrors) {
arendError.cause?.let {
list.add(Pair(arendError.error, it))
}
}
}
return list
Expand Down

0 comments on commit 271fee3

Please sign in to comment.