Details

    • Type: Improvement
    • Status: CLOSED
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: Scala 2.12.1
    • Fix Version/s: Scala 2.12.2
    • Component/s: Compiler (Misc)
    • Labels:
      None

      Description

      http://stackoverflow.com/questions/14807767/algorithm-behind-unclosed-character-literal

      This could be more beginner-friendly:

      scala> 'utf-8'
      <console>:1: error: unclosed character literal
      'utf-8'
            ^
       
      scala> 'utf
      res1: Symbol = 'utf
       
      scala> 'utf - 8'
      <console>:1: error: unclosed character literal
      'utf - 8'
              ^
       
      scala> ''
      <console>:1: error: unclosed character literal
      ''
      ^
       
      scala> 'utf8'
      <console>:1: error: unclosed character literal
      'utf8'
           ^
       
      scala> 'utf_8'
      <console>:1: error: unclosed character literal
             'utf_8'
             ++++++^
      
      

        Attachments

          Activity

            People

            • Assignee:
              apm A. P. Marki
              Reporter:
              apm A. P. Marki
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: