From 256aca612204f1316e5281af6d10a14300d58ad1 Mon Sep 17 00:00:00 2001 From: Hubert Plociniczak Date: Fri, 1 Oct 2010 17:10:27 +0000 Subject: Another attempt for #1591. --- test/files/pos/t1591_pos.scala | 7 +++++++ test/files/pos/t1591b.scala | 13 +++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 test/files/pos/t1591_pos.scala create mode 100644 test/files/pos/t1591b.scala (limited to 'test/files/pos') diff --git a/test/files/pos/t1591_pos.scala b/test/files/pos/t1591_pos.scala new file mode 100644 index 0000000000..4f55d7ce19 --- /dev/null +++ b/test/files/pos/t1591_pos.scala @@ -0,0 +1,7 @@ +trait A + +object Test { + lazy val a = new A { + object Zenek + } +} diff --git a/test/files/pos/t1591b.scala b/test/files/pos/t1591b.scala new file mode 100644 index 0000000000..c671ad6472 --- /dev/null +++ b/test/files/pos/t1591b.scala @@ -0,0 +1,13 @@ +import scala.tools.nsc._ + +class SemanticTokens(val compiler: Global) { + import compiler._ + + def build() = ErrorType + + class Process { + def f() = analyzer + // or to crash the compiler instead of a nice message, + // def f() = analyzer underlying _ + } +} -- cgit v1.2.3