summaryrefslogtreecommitdiff
path: root/test/files/run/t5843.scala
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@epfl.ch>2012-05-28 12:51:05 +0200
committerLukas Rytz <lukas.rytz@epfl.ch>2012-05-28 15:48:24 +0200
commit32fde82fb58df3686af50c272d113f31f07a60d9 (patch)
tree77de003bf0ce878ad3f934086bcb95151d84ec54 /test/files/run/t5843.scala
parentac3fdfddb64a93a17f414e34692b2fd86e7f4746 (diff)
downloadscala-32fde82fb58df3686af50c272d113f31f07a60d9.tar.gz
scala-32fde82fb58df3686af50c272d113f31f07a60d9.tar.bz2
scala-32fde82fb58df3686af50c272d113f31f07a60d9.zip
fix t5843
Diffstat (limited to 'test/files/run/t5843.scala')
-rw-r--r--test/files/run/t5843.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/files/run/t5843.scala b/test/files/run/t5843.scala
new file mode 100644
index 0000000000..43d588c7b7
--- /dev/null
+++ b/test/files/run/t5843.scala
@@ -0,0 +1,15 @@
+object Test extends App {
+ val foo = scala.xml.Attribute(null, "foo", "1", scala.xml.Null)
+ val bar = scala.xml.Attribute(null, "bar", "2", foo)
+ println(foo)
+ println(bar)
+ println(scala.xml.TopScope.getURI(foo.pre))
+ println(bar remove "foo")
+ println(bar remove "bar")
+ println(bar remove (null, scala.xml.TopScope, "foo"))
+ println(bar remove (null, scala.xml.TopScope, "bar"))
+
+ val ns = scala.xml.NamespaceBinding(null, "uri", scala.xml.TopScope)
+ println(bar remove (null, ns, "foo"))
+ println(bar remove (null, ns, "bar"))
+}