diff options
author | Nada Amin <namin@alum.mit.edu> | 2012-02-23 15:25:50 +0100 |
---|---|---|
committer | Nada Amin <namin@alum.mit.edu> | 2012-02-23 15:25:50 +0100 |
commit | 5052b58089b711e7ddc481b0aa1989b1dc9f2bfa (patch) | |
tree | f8f16a04fc2524498eb8df78d1d2aae1b23493e4 /test/files/neg | |
parent | d5006b118f6ad1bf10ed35491cd0bda05fc88972 (diff) | |
download | scala-5052b58089b711e7ddc481b0aa1989b1dc9f2bfa.tar.gz scala-5052b58089b711e7ddc481b0aa1989b1dc9f2bfa.tar.bz2 scala-5052b58089b711e7ddc481b0aa1989b1dc9f2bfa.zip |
Add test for ConstructorPrefixError.
Diffstat (limited to 'test/files/neg')
-rw-r--r-- | test/files/neg/constructor-prefix-error.check | 4 | ||||
-rw-r--r-- | test/files/neg/constructor-prefix-error.scala | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/test/files/neg/constructor-prefix-error.check b/test/files/neg/constructor-prefix-error.check new file mode 100644 index 0000000000..87e948881b --- /dev/null +++ b/test/files/neg/constructor-prefix-error.check @@ -0,0 +1,4 @@ +constructor-prefix-error.scala:6: error: Outer is not a legal prefix for a constructor + val x = new Outer#Inner + ^ +one error found diff --git a/test/files/neg/constructor-prefix-error.scala b/test/files/neg/constructor-prefix-error.scala new file mode 100644 index 0000000000..c2accea284 --- /dev/null +++ b/test/files/neg/constructor-prefix-error.scala @@ -0,0 +1,7 @@ +class Outer { + class Inner +} + +object Test { + val x = new Outer#Inner +} |