summaryrefslogtreecommitdiff
path: root/test/files/run/t0486.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2008-02-15 11:30:46 +0000
committermichelou <michelou@epfl.ch>2008-02-15 11:30:46 +0000
commite1ffc05b10be619d36150a27a1d9ccdc72b99e8d (patch)
tree1f400dbe6ffa02bef36503f45717a4fcb4b685af /test/files/run/t0486.scala
parentfa3861528dab4b304b4f74e507af5f40a59705e4 (diff)
downloadscala-e1ffc05b10be619d36150a27a1d9ccdc72b99e8d.tar.gz
scala-e1ffc05b10be619d36150a27a1d9ccdc72b99e8d.tar.bz2
scala-e1ffc05b10be619d36150a27a1d9ccdc72b99e8d.zip
fixed #486
Diffstat (limited to 'test/files/run/t0486.scala')
-rw-r--r--test/files/run/t0486.scala24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/files/run/t0486.scala b/test/files/run/t0486.scala
new file mode 100644
index 0000000000..9cedecc095
--- /dev/null
+++ b/test/files/run/t0486.scala
@@ -0,0 +1,24 @@
+object Test extends Application {
+ import scala.xml._
+
+ def wsdlTemplate1(serviceName: String): Node =
+ <wsdl:definitions name={serviceName} xmlns:tns = { "target1" } >
+ </wsdl:definitions>;
+
+ def wsdlTemplate2(serviceName: String, targetNamespace: String): Node =
+ <wsdl:definitions name={serviceName} xmlns:tns = { targetNamespace } >
+ </wsdl:definitions>;
+
+ def wsdlTemplate3(serviceName: String): Node =
+ <wsdl:definitions name={serviceName} xmlns:tns = { Text("target3") } >
+ </wsdl:definitions>;
+
+ def wsdlTemplate4(serviceName: String, targetNamespace: () => String): Node =
+ <wsdl:definitions name={serviceName} xmlns:tns = { targetNamespace() } >
+ </wsdl:definitions>;
+
+ println(wsdlTemplate1("service1"))
+ println(wsdlTemplate2("service2", "target2"))
+ println(wsdlTemplate3("service3"))
+ println(wsdlTemplate4("service4", () => "target4"))
+}