Skip to content

Lint when a parameter should be marked as tracked, but couldn't be inferred #21987

Open
@KacperFKorban

Description

@KacperFKorban

Description

The compiler should give a lint when a parameter should be marked as tracked, but the compiler couldn't infer it correctly.

Example

For the following example:

class C[T](tracked val t: T)

class D[T](val t: T) extends C[T](t) // warn `t` should be `tracked`

The compiler should warn, that t should most likely be marked as tracked, since it is used as a tracked parameter in C.

Details

This should be enabled under a linting flag that only works under experimental.modularity

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions