Skip to content

Singleton types should not be inferred for final vars #1285

Closed
@smarter

Description

@smarter
class Test {
  final var x = false
  x = true
}
error: type mismatch:
 found   : Boolean(true)
 required: Boolean(false)
  x = true
      ^

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions