Skip to content

Commit a431955

Browse files
committed
Add doc for env
1 parent 8cdb1ed commit a431955

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler/src/dotty/tools/dotc/transform/init/Semantic.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,10 @@ class Semantic {
138138
import Heap._
139139
val heap: Heap = Heap.empty
140140

141-
/** The environment for method parameters */
141+
/** The environment for method parameters
142+
*
143+
* For performance and usability, we restrict parameters to be either `Cold` or `Hot`.
144+
*/
142145
object Env {
143146
opaque type Env = Map[Symbol, Value]
144147

0 commit comments

Comments
 (0)