diff options
author | Paul Phillips <paulp@improving.org> | 2010-10-02 23:19:16 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-10-02 23:19:16 +0000 |
commit | 943fbb1363345fdaca55e5df95059e8ce8c1344b (patch) | |
tree | b12582afc26fe0e3d0dc4a502eef5e6a2d41bfb3 /test/pending/pos/bug112606B.scala | |
parent | 06aa1c9eff49d5190e82a72a876d7b3bd706d6d4 (diff) | |
download | scala-943fbb1363345fdaca55e5df95059e8ce8c1344b.tar.gz scala-943fbb1363345fdaca55e5df95059e8ce8c1344b.tar.bz2 scala-943fbb1363345fdaca55e5df95059e8ce8c1344b.zip |
The next batch of tests put up a little more st...
The next batch of tests put up a little more struggle, but only a
little. See test/pending/pos/unappgadteval.scala (the changes for which
were in the previous commit) for an example of a test which might be on
to something. Any idea what it would take to get it working?
// the key lines
case i @ Suc() => { (y: Int) => y + 1 } // a = Int => Int
case f @ Lam[b,c](x, e) => { (y: b) => eval(e, env.extend(x, y)) } // a = b=>c
No review.
Diffstat (limited to 'test/pending/pos/bug112606B.scala')
-rw-r--r-- | test/pending/pos/bug112606B.scala | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/test/pending/pos/bug112606B.scala b/test/pending/pos/bug112606B.scala deleted file mode 100644 index 6dfaf4bf01..0000000000 --- a/test/pending/pos/bug112606B.scala +++ /dev/null @@ -1,11 +0,0 @@ -package test; -trait Test2 { - case class Token(text : String); - class KeywordToken(text : String) extends Token(text); - def decode(tok : KeywordToken) = tok match { - // constructor cannot be instantiated to expected type; - // found : Test2.this.Token - // required: Test2.this.KeywordToken - case Token("final") => true; - } -} |