Dotty: Missing errors for `inline var`, `inline object`, `inline class` and `inline type`.

Created on 12 May 2017  路  1Comment  路  Source: lampepfl/dotty

  • [x] inline var foo: Should not be allowed, it will break after the first assignment. Possibly for lazy val too.
  • [x] inline class Foo: Should not be allowed.
  • [x] inline object Foo: Should have a better error message. Currently _right-hand side of inline object Foo must be a constant expression or a function_.
  • [x] inline type Foo: Should not be allowed, it makes not sense.
novice bug fix available

Most helpful comment

For the record: We discussed an idea that inline class may be a new syntax
for value class.

On 12 May 2017 16:01:51 Nicolas Stucki notifications@github.com wrote:

  • [ ] inline var foo: Should not be allowed, it will break after the
    first assignment. Possibly for lazy val too.
  • [ ] inline class Foo: Should not be allowed.
  • [ ] inline object Foo: Should have a better error message. Currently
    _right-hand side of inline object Foo must be a constant expression or a
    function_.
  • [ ] inline type Foo: Should not be allowed, it makes not sense.

--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/lampepfl/dotty/issues/2421

>All comments

For the record: We discussed an idea that inline class may be a new syntax
for value class.

On 12 May 2017 16:01:51 Nicolas Stucki notifications@github.com wrote:

  • [ ] inline var foo: Should not be allowed, it will break after the
    first assignment. Possibly for lazy val too.
  • [ ] inline class Foo: Should not be allowed.
  • [ ] inline object Foo: Should have a better error message. Currently
    _right-hand side of inline object Foo must be a constant expression or a
    function_.
  • [ ] inline type Foo: Should not be allowed, it makes not sense.

--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/lampepfl/dotty/issues/2421

Was this page helpful?
0 / 5 - 0 ratings

Related issues

odersky picture odersky  路  60Comments

odersky picture odersky  路  71Comments

odersky picture odersky  路  66Comments

japgolly picture japgolly  路  55Comments

felixmulder picture felixmulder  路  120Comments