Skip to content

Commit c4e1f36

Browse files
committed
AST: one more back and forth in var references
1 parent 9d3cb0d commit c4e1f36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Test/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ selectVar typ (Names ints bools bytes) = do
240240
SByteStr -> bytes
241241
idx <- elements [0..((length names)-1)]
242242
let (x, at) = names!!idx
243-
return $ CVarRef nowhere (Item typ (PrimitiveType at) (CVar nowhere at x))
243+
return $ VarRef nowhere Pre SCalldata (Item typ (PrimitiveType at) (CVar nowhere at x))
244244

245245
-- | Generates a record type containing identifier names.
246246
-- Ensures each generated name appears once only.

0 commit comments

Comments
 (0)