Skip to content

partest: compiler crashes, then reports test passed #7409

@scabug

Description

@scabug
% test/partest --failed --update-check
Selected 9 tests drawn from previously failed tests

# starting 5 tests in neg
exception when typing $this.i().hashCode()/class scala.reflect.internal.Trees$Apply
class Funky is abstract; cannot be instantiated in file /scratch/trunk4/test/files/neg/t6283.scala
scala.reflect.internal.Types$TypeError: class Funky is abstract; cannot be instantiated
	at scala.tools.nsc.typechecker.Contexts$Context.issueCommon(Contexts.scala:420)
	at scala.tools.nsc.typechecker.Contexts$Context.issue(Contexts.scala:424)
	at scala.tools.nsc.typechecker.Infer$Inferencer.issue(Infer.scala:307)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$normalTypedApply$1$1.apply(Typers.scala:4494)
	at scala.tools.nsc.typechecker.Typers$Typer$$anonfun$normalTypedApply$1$1.apply(Typers.scala:4494)
	at scala.tools.nsc.typechecker.Typers$Typer.onError$3(Typers.scala:4465)
	at scala.tools.nsc.typechecker.Typers$Typer.normalTypedApply$1(Typers.scala:4494)
	at scala.tools.nsc.typechecker.Typers$Typer.typedApply$1(Typers.scala:4521)
	at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5205)
...
unhandled exception while transforming t6283.scala
ok   1 - neg/t6283.scala                         
...

9/9 passed (elapsed time: 00:00:16)
Test Run PASSED

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions