summaryrefslogtreecommitdiff
path: root/test/files/neg/t8217-local-alias-requires-rhs.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/neg/t8217-local-alias-requires-rhs.scala')
-rw-r--r--test/files/neg/t8217-local-alias-requires-rhs.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/neg/t8217-local-alias-requires-rhs.scala b/test/files/neg/t8217-local-alias-requires-rhs.scala
new file mode 100644
index 0000000000..12b7976835
--- /dev/null
+++ b/test/files/neg/t8217-local-alias-requires-rhs.scala
@@ -0,0 +1,15 @@
+trait Alias {
+ def foo = {
+ type A
+ }
+ val bar = {
+ type B
+ object O {
+ type OK
+ }
+ }
+}
+
+class C {
+ def this(a: Any) = { this(); type C }
+}