Skip to content

missing override check #329

@olhotak

Description

@olhotak
abstract class C[T] { def head: T }
case class D[T](head: Int) extends C[T]

Notice the type of head in D is (incorrectly) Int instead of T.

This compiles in dotty but not in scalac.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions