From 26109cdb6b024a09783e9ff1e0bb7ac64597a689 Mon Sep 17 00:00:00 2001 From: Iulian Dragos Date: Fri, 31 Aug 2007 15:30:33 +0000 Subject: Fixed crash in lazy traits (ticket #39). --- test/files/run/lazy-traits.scala | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/files/run/lazy-traits.scala') diff --git a/test/files/run/lazy-traits.scala b/test/files/run/lazy-traits.scala index 6238813e8d..bcfb2c45b8 100644 --- a/test/files/run/lazy-traits.scala +++ b/test/files/run/lazy-traits.scala @@ -124,6 +124,18 @@ trait LocalLazyVal { } } +/** Test successful compilation (see ticket #39) */ +package x.y { + + trait Trait { + lazy val v = 1 + } + + class OuterClass { + object InnerObject extends Trait + } +} + object Test extends Application { def test(name: String, v: A) { -- cgit v1.2.3