From fb84ab55f4fd234c35ad85083092e9c5fe676370 Mon Sep 17 00:00:00 2001 From: Dmitry Petrashko Date: Tue, 10 Feb 2015 13:19:27 +0100 Subject: Disable t2667 that fails inside Extension methods. This info transformation was left untriggered before backend was enabled. --- src/dotty/tools/dotc/transform/ExtensionMethods.scala | 2 +- tests/disabled/t2667.scala | 7 +++++++ tests/pos/t2667.scala | 6 ------ 3 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 tests/disabled/t2667.scala delete mode 100644 tests/pos/t2667.scala diff --git a/src/dotty/tools/dotc/transform/ExtensionMethods.scala b/src/dotty/tools/dotc/transform/ExtensionMethods.scala index 2ff43c55b..a006f04a7 100644 --- a/src/dotty/tools/dotc/transform/ExtensionMethods.scala +++ b/src/dotty/tools/dotc/transform/ExtensionMethods.scala @@ -35,7 +35,7 @@ class ExtensionMethods extends MiniPhaseTransform with DenotTransformer with Ful case ref: ClassDenotation if ref is ModuleClass => ref.linkedClass match { case origClass: ClassSymbol if isDerivedValueClass(origClass) => - val cinfo = ref.classInfo + val cinfo = ref.classInfo // ./tests/pos/t2667.scala dies here for module class AnyVal$ val decls1 = cinfo.decls.cloneScope ctx.atPhase(thisTransformer.next) { implicit ctx => for (decl <- origClass.classInfo.decls) { diff --git a/tests/disabled/t2667.scala b/tests/disabled/t2667.scala new file mode 100644 index 000000000..600c1eaf0 --- /dev/null +++ b/tests/disabled/t2667.scala @@ -0,0 +1,7 @@ +// ExtensionMethods info transformer fails here for AnyVal$ +object A { + def foo(x: Int, y: Int*): Int = 45 + def foo[T](x: T*): Int = 55 + + val x: Unit = foo(23, 23f) +} diff --git a/tests/pos/t2667.scala b/tests/pos/t2667.scala deleted file mode 100644 index 7f1f36f00..000000000 --- a/tests/pos/t2667.scala +++ /dev/null @@ -1,6 +0,0 @@ -object A { - def foo(x: Int, y: Int*): Int = 45 - def foo[T](x: T*): Int = 55 - - val x: Unit = foo(23, 23f) -} -- cgit v1.2.3