Guest User

Untitled

a guest
Jan 21st, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1.  
  2. /** This is translating uses of List() into Nil. This is less
  3. * than ideal from a consistency standpoint, but it shouldn't be
  4. * altered without due caution.
  5. */
  6. if (fun.symbol == List_apply && args.isEmpty && !forInteractive)
  7. atPos(tree.pos)(gen.mkNil setType restpe)
  8. else
  9. constfold(treeCopy.Apply(tree, fun, args1) setType ifPatternSkipFormals(restpe))
Add Comment
Please, Sign In to add comment