Skip to content

Scala 2.13 failing to emit code that works with previous Scala versions #11609

@pweisenburger

Description

@pweisenburger

The following code (using Shapeless) compiles fine with Scala 2.11.x and 2.12.x. However, it fails to compile with Scala 2.13.0:

import shapeless._
import syntax.zipper._

object test {
  identity {
    val l = 1 :: "foo" :: 3.0 :: HNil
    val a0 = l.toZipper.right.put(("wibble", 45)).reify
  }
}

The compiler error is

[error] Error while emitting Test.scala
[error] value l

This might be related to missing stabilizers.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions