diff options
author | Martin Odersky <odersky@gmail.com> | 2014-06-12 12:46:57 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-06-12 12:55:11 +0200 |
commit | 51563aee5478f90a0f86c29385f74d020b8995dd (patch) | |
tree | 05d317678ee3eda3c8d15af334e5a7e221722644 /test | |
parent | c2175ec910165308e81c48bd8ca8910c50862be4 (diff) | |
download | dotty-51563aee5478f90a0f86c29385f74d020b8995dd.tar.gz dotty-51563aee5478f90a0f86c29385f74d020b8995dd.tar.bz2 dotty-51563aee5478f90a0f86c29385f74d020b8995dd.zip |
Change definition of isLegalPrefix so that it allows projecting on an abstract type.
This is needed to make the encoding og higher-kinded types work. E.g.
Rep[Int]
would be represented as
Rep { type Arg$0 = Int } # Apply
where Apply is an abstract member of the base class Lambfa$I of Rep.
Diffstat (limited to 'test')
-rw-r--r-- | test/dotc/tests.scala | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala index c7b0dc044..64d520500 100644 --- a/test/dotc/tests.scala +++ b/test/dotc/tests.scala @@ -67,6 +67,7 @@ class tests extends CompilerTest { @Test def neg_autoTupling = compileFile(posDir, "autoTuplingTest", "-language:noAutoTupling" :: Nil, xerrors = 4) @Test def neg_autoTupling2 = compileFile(negDir, "autoTuplingTest", xerrors = 4) @Test def neg_companions = compileFile(negDir, "companions", xerrors = 1) + @Test def neg_projections = compileFile(negDir, "projections", xerrors = 1) @Test def neg_i39 = compileFile(negDir, "i39", xerrors = 1) @Test def neg_i50_volatile = compileFile(negDir, "i50-volatile", xerrors = 4) @Test def neg_t0273_doubledefs = compileFile(negDir, "t0273", xerrors = 1) |