Skip to content

Conversation

@d367wang
Copy link

@d367wang d367wang commented Oct 13, 2021

elementToAtm is a HashMap that caches the ATMs of various elements, i.e. it stores the declared type of variables and type variables. Therefore, it's important to prevent the stored ATMs from side-effect by:

  1. store into elementToAtm the copy of the atm that is to being cached
  2. use the copy of the atm that are fetched from elementToAtm

@d367wang d367wang requested a review from wmdietl May 2, 2022 01:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants