summaryrefslogtreecommitdiff
path: root/test/files/neg
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@gmail.com>2016-05-30 20:30:16 +0200
committerAdriaan Moors <adriaan@lightbend.com>2016-08-11 10:59:14 -0700
commit8fa63b7538e169a4b72b95d9dd8fa7a8939279d9 (patch)
tree2ae05be89134ff16def030d4811cafeed5f436da /test/files/neg
parenta97297d7d253eb7573c995ce936f364b56d9bfe9 (diff)
downloadscala-8fa63b7538e169a4b72b95d9dd8fa7a8939279d9.tar.gz
scala-8fa63b7538e169a4b72b95d9dd8fa7a8939279d9.tar.bz2
scala-8fa63b7538e169a4b72b95d9dd8fa7a8939279d9.zip
Test EnclosingMethod attribute for classes in lazy vals
Local and anonymous classes need to have an EnclosingMethod attribute denoting the enclosing class and method. In fact, the enclosing class must always be defined for local and anonymous classes, but the enclosing method may be null (for local / anonymous classes defined in field initializers or local blocks within a class body). The new test here ensures that classes declared within a lazy val initializer block indeed have the enclosing method set to null.
Diffstat (limited to 'test/files/neg')
0 files changed, 0 insertions, 0 deletions