diff options
author | Paul Phillips <paulp@improving.org> | 2012-03-28 09:26:15 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-03-29 20:26:40 -0700 |
commit | 0bc2210f5541bfc70d0316bdb1ae89755f4aa70c (patch) | |
tree | d89f68303b2571d0fd114ea3bd7f357a15bfaa61 /test/pending/pos/t1476.scala | |
parent | 622cc9967376d6cef57c7478587e20d6afe9503f (diff) | |
download | scala-0bc2210f5541bfc70d0316bdb1ae89755f4aa70c.tar.gz scala-0bc2210f5541bfc70d0316bdb1ae89755f4aa70c.tar.bz2 scala-0bc2210f5541bfc70d0316bdb1ae89755f4aa70c.zip |
A couple tests for pending.
Diffstat (limited to 'test/pending/pos/t1476.scala')
-rw-r--r-- | test/pending/pos/t1476.scala | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/pending/pos/t1476.scala b/test/pending/pos/t1476.scala new file mode 100644 index 0000000000..1f8e95c28f --- /dev/null +++ b/test/pending/pos/t1476.scala @@ -0,0 +1,23 @@ +abstract class Module { + def moduleDemands(): List[Module] +} + +object Test { + new Module { owner: Module => + def moduleDemands() = Nil + + val a = new Module { def moduleDemands(): List[Module] = Nil } + val b = new Module { def moduleDemands(): List[Module] = owner :: c :: Nil } + val c = new Module { def moduleDemands(): List[Module] = owner :: a :: Nil } + } +} + +object Test2 { + new Module { owner => + def moduleDemands() = Nil + + val a = new Module { def moduleDemands(): List[Module] = Nil } + val b = new Module { def moduleDemands(): List[Module] = owner :: c :: Nil } + val c = new Module { def moduleDemands(): List[Module] = owner :: a :: Nil } + } +} |