Skip to content

Commit fb84ab5

Browse files
committed
Disable t2667 that fails inside Extension methods.
This info transformation was left untriggered before backend was enabled.
1 parent 89e8970 commit fb84ab5

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/dotty/tools/dotc/transform/ExtensionMethods.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ExtensionMethods extends MiniPhaseTransform with DenotTransformer with Ful
3535
case ref: ClassDenotation if ref is ModuleClass =>
3636
ref.linkedClass match {
3737
case origClass: ClassSymbol if isDerivedValueClass(origClass) =>
38-
val cinfo = ref.classInfo
38+
val cinfo = ref.classInfo // ./tests/pos/t2667.scala dies here for module class AnyVal$
3939
val decls1 = cinfo.decls.cloneScope
4040
ctx.atPhase(thisTransformer.next) { implicit ctx =>
4141
for (decl <- origClass.classInfo.decls) {

tests/pos/t2667.scala renamed to tests/disabled/t2667.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// ExtensionMethods info transformer fails here for AnyVal$
12
object A {
23
def foo(x: Int, y: Int*): Int = 45
34
def foo[T](x: T*): Int = 55

0 commit comments

Comments
 (0)