Skip to content

Commit bd4e86c

Browse files
committed
ConcurrentModificationException
1 parent dc6ad13 commit bd4e86c

File tree

1 file changed

+2
-1
lines changed
  • src/main/java/com/tang/intellij/lua/ty

1 file changed

+2
-1
lines changed

src/main/java/com/tang/intellij/lua/ty/Ty.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,8 @@ class TyUnion : Ty(TyKind.Union) {
322322

323323
fun each(ty: ITy, process: (ITy) -> Unit) {
324324
if (ty is TyUnion) {
325-
ty.childSet.forEach(process)
325+
//ConcurrentModificationException
326+
ty.childSet.toTypedArray().forEach(process)
326327
} else process(ty)
327328
}
328329

0 commit comments

Comments
 (0)