aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDmitry Petrashko <dark@d-d.me>2017-03-20 09:54:44 +0100
committerGitHub <noreply@github.com>2017-03-20 09:54:43 +0100
commit53b808f27229cd2eefaf5b4141b3519cdc886b79 (patch)
treed6d36a7fc70beec7af8e8511f147bb5db2891d81 /tests
parent8c26743298a7f4b50f31625be59a0d426f063659 (diff)
parent3920414761daf37106ff94ae75b87eb822d9430f (diff)
downloaddotty-53b808f27229cd2eefaf5b4141b3519cdc886b79.tar.gz
dotty-53b808f27229cd2eefaf5b4141b3519cdc886b79.tar.bz2
dotty-53b808f27229cd2eefaf5b4141b3519cdc886b79.zip
Merge pull request #2118 from abeln/super-bug
Fix #2117: bug in typechecking super prefix with invalid enclosing class
Diffstat (limited to 'tests')
-rw-r--r--tests/neg/i2117.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/neg/i2117.scala b/tests/neg/i2117.scala
new file mode 100644
index 000000000..0e1d9e349
--- /dev/null
+++ b/tests/neg/i2117.scala
@@ -0,0 +1,3 @@
+class A {
+ C.super.foo() // error: C isn't an enclosing class
+}