diff options
author | Burak Emir <emir@epfl.ch> | 2007-03-03 01:57:21 +0000 |
---|---|---|
committer | Burak Emir <emir@epfl.ch> | 2007-03-03 01:57:21 +0000 |
commit | c5455747a9e2e840668b333e31fadcee5a85318a (patch) | |
tree | 5b9112a5762035f50c2145c2ee9cfe036de7ed41 /test/files/neg/xmlcorner.scala | |
parent | e46e66a0196d0ee950b08d5946fcee44cfddeef3 (diff) | |
download | scala-c5455747a9e2e840668b333e31fadcee5a85318a.tar.gz scala-c5455747a9e2e840668b333e31fadcee5a85318a.tar.bz2 scala-c5455747a9e2e840668b333e31fadcee5a85318a.zip |
HasKeyValue does not work? added pending/jvm/ba...
HasKeyValue does not work? added pending/jvm/backendBugUnapply fixed
xml parsing, supports the ever-growing stateful scanner hacks now
(sepRegions)
Diffstat (limited to 'test/files/neg/xmlcorner.scala')
-rw-r--r-- | test/files/neg/xmlcorner.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/neg/xmlcorner.scala b/test/files/neg/xmlcorner.scala index 9f1c55bce4..042ec05e68 100644 --- a/test/files/neg/xmlcorner.scala +++ b/test/files/neg/xmlcorner.scala @@ -4,3 +4,19 @@ class foo { class bar { val wrong = <bla: /> } + +// this "pos" test is only included as a parser test +object pos +{ + def wrap(f : Int => Unit) = f(5) + + wrap({ v => + if(v == 5) { + val n = { + val m = (<a>{}</a>) + <div>{ v }</div> + } + () + } + }) +} |