Skip to content

Compiler freezes if type parameter is omitted #12466

Closed
@ansvonwa

Description

@ansvonwa

Compiler version

3.0.0

Minimized code

scala> ???.asInstanceOf[scala.collection.Seq] += 1

Note:

Output (click arrow to expand)

Absolutely nothing: No output, no error, no new prompt.
Same with -Xprint:typer:

$ time scala -Xprint:typer
scala> ???.asInstanceOf[scala.collection.Seq] += 1                                              
^C
real	1m5,798s
user	0m8,007s
sys	0m0,721s

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