Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Usages of value a will be easy to mistake for calls warning since Scala 2.13.17 #2364

@xuwei-k

Description

@xuwei-k

build.sbt

scalaVersion := "2.13.17-M1"

scalacOptions += "-Xlint"

libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.19"

Foo.scala

package exxample

import org.scalatest.wordspec.AsyncWordSpec
import org.scalatest.matchers.must.Matchers

class Foo extends AsyncWordSpec with Matchers
Foo.scala:6:7: Usages of value a will be easy to mistake for calls to def a[T](implicit evidence$5: scala.reflect.ClassTag[T]): org.scalatest.matchers.dsl.ResultOfATypeInvocation[T], which has a single implicit parameter list.
[warn] class Foo extends AsyncWordSpec with Matchers
[warn]       ^
[warn] one warning found

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