Skip to content

Commit 5c66d61

Browse files
committed
Use deterministic order of hole arguments
1 parent 738c3aa commit 5c66d61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/transform/Splicing.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ class Splicing extends MacroTransform:
189189
* ```
190190
*/
191191
private class SpliceTransformer(spliceOwner: Symbol, isCaptured: Symbol => Boolean) extends Transformer:
192-
private val typeBindingMap = mutable.Map.empty[Symbol, (Tree, Symbol)]
193-
private val termBindingMap = mutable.Map.empty[Symbol, (Tree, Symbol)]
192+
private val typeBindingMap = mutable.LinkedHashMap.empty[Symbol, (Tree, Symbol)]
193+
private val termBindingMap = mutable.LinkedHashMap.empty[Symbol, (Tree, Symbol)]
194194
/** Reference to the `Quotes` instance of the current level 1 splice */
195195
private var quotes: Tree | Null = null // TODO: add to the context
196196
private var healedTypes: QuoteTypeTags | Null = null // TODO: add to the context

0 commit comments

Comments
 (0)