Uploaded image for project: 'Scala Programming Language'
  1. Scala Programming Language
  2. SI-6809

Forbid case classes without a parameter list

    Details

      Description

      This has been deprecated since at least Scala 2.7.7.
      We should get rid of it for 2.11 at last.

      scala> case class Foo
      <console>:1: warning: case classes without a parameter list have been deprecated;
      use either case objects or case classes with `()' as parameter list.
             case class Foo
                           ^
      <console>:7: warning: case classes without a parameter list have been deprecated;
      use either case objects or case classes with `()' as parameter list.
             case class Foo
                           ^
      defined class Foo
      

        Attachments

          Activity

          Show
          soc Simon Ochsenreither added a comment - https://github.com/scala/scala/pull/1769

            People

            • Assignee:
              soc Simon Ochsenreither
              Reporter:
              soc Simon Ochsenreither
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: