aboutsummaryrefslogtreecommitdiff
path: root/tests/untried/pos/t1591b.scala
diff options
context:
space:
mode:
Diffstat (limited to 'tests/untried/pos/t1591b.scala')
-rw-r--r--tests/untried/pos/t1591b.scala13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/untried/pos/t1591b.scala b/tests/untried/pos/t1591b.scala
new file mode 100644
index 000000000..c671ad647
--- /dev/null
+++ b/tests/untried/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 _
+ }
+}