Skip to content

3.3.1-RC4 compiles but 3.3.1-RC5 fails ScalaTest assertThrows without a type parameter #18478

Closed as not planned
@godenji

Description

@godenji

Compiler version

3.3.1-RC5 and 3.3.1-RC6

Minimized code

dummy implementation of assertThrows

inline def assertThrows[T <: AnyRef](f: => Any)(implicit classTag: scala.reflect.ClassTag[T]) = f

assertThrows(1)

Output

No ClassTag available for T
  |
  |               where:    T is a type variable with constraint <: AnyRef

Expectation

Compiles successfully as was the case prior to RC5.

I thought that the offending commit was this merged PR but apparently it's unrelated? At any rate, a commit in RC5 has broken ScalaTest.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions