From d69912293410dd6f3cb205d70b9de8d1bd10ded9 Mon Sep 17 00:00:00 2001 From: James Iry Date: Thu, 6 Dec 2012 21:46:14 -0800 Subject: SI-5789 Removes assertion about implclass flag in Mixin.scala The assertion that the class being mixed from should be an implclass seems reasonable, but the flag isn't always set. In order to stop the bleeding this fix turns the assertion into a debug warning. Issue SI-6782 will track figuring out the root cause of the missing flag. --- test/files/run/t5789.check | 1 + test/files/run/t5789.scala | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 test/files/run/t5789.check create mode 100644 test/files/run/t5789.scala (limited to 'test/files/run') diff --git a/test/files/run/t5789.check b/test/files/run/t5789.check new file mode 100644 index 0000000000..3c459e9a54 --- /dev/null +++ b/test/files/run/t5789.check @@ -0,0 +1 @@ +completed successfully diff --git a/test/files/run/t5789.scala b/test/files/run/t5789.scala new file mode 100644 index 0000000000..4169e34959 --- /dev/null +++ b/test/files/run/t5789.scala @@ -0,0 +1,29 @@ + +import scala.tools.nsc._ +import interpreter.ILoop + +object Test { + + def main(args : Array[String]) { + + val code = """ + val n = 2 + () => n + """ + + val s = new Settings() + s.optimise.value = false + s.debug.value = true + s.log.value = List("all") + val lines = ILoop.runForTranscript(code + "\n" + code, s).lines.toList + + + if (lines exists (_ contains "Abandoning crashed session")) { + lines foreach println + println("crashed!") + } else { + println("completed successfully") + } + } +} + -- cgit v1.2.3