Skip to content

MatchError in typer (parser stability) #4996

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sir-wabbit opened this issue Aug 24, 2018 · 0 comments
Closed

MatchError in typer (parser stability) #4996

sir-wabbit opened this issue Aug 24, 2018 · 0 comments

Comments

@sir-wabbit
Copy link

trait I3 {
  def foo[i0[_] : i4[_]](a: (List[String]]) = ???
}
Exception in thread "main" scala.MatchError: ContextBounds(TypeBoundsTree(EmptyTree,EmptyTree),List(AppliedTypeTree(AppliedTypeTree(Ident(i4),List(TypeBoundsTree(EmptyTree,EmptyTree))),List(Ident(i0))))) (of class dotty.tools.dotc.ast.untpd$ContextBounds)
	at dotty.tools.dotc.ast.desugar$.apply(Desugar.scala:1109)
	at dotty.tools.dotc.typer.Typer.typedUnnamed$1(Typer.scala:1812)
	at dotty.tools.dotc.typer.Typer.typedUnadapted(Typer.scala:1823)
	at dotty.tools.dotc.typer.Typer.op1$2(Typer.scala:1856)
	at dotty.tools.dotc.typer.Typer.typed(Typer.scala:1852)
	at dotty.tools.dotc.typer.Typer.typed(Typer.scala:1864)
	at dotty.tools.dotc.typer.Namer.typedAheadType$$anonfun$1(Namer.scala:1010)
	at dotty.tools.dotc.typer.Namer.typedAheadImpl(Namer.scala:1003)
	at dotty.tools.dotc.typer.Namer.typedAheadType(Namer.scala:1010)
	at dotty.tools.dotc.typer.Namer.typeDefSig(Namer.scala:1261)
	at dotty.tools.dotc.typer.Namer$TypeDefCompleter.typeSig(Namer.scala:878)
	at dotty.tools.dotc.typer.Namer$Completer.completeInCreationContext(Namer.scala:843)
	at dotty.tools.dotc.typer.Namer$Completer.complete(Namer.scala:821)
@sir-wabbit sir-wabbit changed the title MatchError in typer MatchError in typer (parser stability) Aug 24, 2018
smarter added a commit to dotty-staging/dotty that referenced this issue Apr 30, 2019
@odersky odersky closed this as completed in 3370370 May 2, 2019
odersky added a commit that referenced this issue May 2, 2019
Fix #4996: Properly drop context bounds in type lambdas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants