The Artima Developer Community


Errata for Programming in Scala, 2nd Edition
Chapter 33: Combinator Parsing
Return to errata index.

Page 747 (PDF page 779):
I wonder if the type of the alternation function is wrong.  I tried
something similar and the compiler reported that the covariant type
parameter T is used in a contravariant position.  I tried
  def | [U >: T]( q: => Parser[U]) = new Parser[U] ...

Page number: Book type: Paperback book PDF eBook
Book version: (Or build date. Found on back of title page.)
Your feedback:
Your name: (optional)
Your email address: (optional) (will not be published)

Copyright © 2021 Artima, Inc. All rights reserved.