summaryrefslogtreecommitdiff
path: root/test/files/run/code.check
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2011-09-29 12:45:53 +0000
committerMartin Odersky <odersky@gmail.com>2011-09-29 12:45:53 +0000
commit4529141cc154a9d7359e16344d7a318ca529f89f (patch)
tree478616804b5d720036f1281548eb28ce786e9672 /test/files/run/code.check
parent02ac8de5c018a38e8262795010ed980dad9245b3 (diff)
downloadscala-4529141cc154a9d7359e16344d7a318ca529f89f.tar.gz
scala-4529141cc154a9d7359e16344d7a318ca529f89f.tar.bz2
scala-4529141cc154a9d7359e16344d7a318ca529f89f.zip
Following Paul's detective work, fixed Java cla...
Following Paul's detective work, fixed Java class loading in reflection. Moved test code.scala into checkin build. Yay!
Diffstat (limited to 'test/files/run/code.check')
-rw-r--r--test/files/run/code.check18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/files/run/code.check b/test/files/run/code.check
new file mode 100644
index 0000000000..4bc36424ee
--- /dev/null
+++ b/test/files/run/code.check
@@ -0,0 +1,18 @@
+testing: ((x: Int) => x.$plus(ys.length))
+result = ((x: Int) => x.+{(x: <?>)Int}(ys.length{Int}){Int}){Int => Int}
+testing: (() => {
+ val e: Element = new Element("someName");
+ e
+})
+result = (() => {
+ val e: Element = new Element{Element}{(name: <?>)Element}("someName"{java.lang.String("someName")}){Element};
+ e{Element}
+}{Element}){() => Element}
+testing: (() => truc.elem = 6)
+result = (() => truc.elem{Int} = 6{Int(6)}{Unit}){() => Unit}
+testing: (() => truc.elem = truc.elem.$plus(6))
+result = (() => truc.elem{Int} = truc.elem.+{(x: <?>)Int}(6{Int(6)}){Int}{Unit}){() => Unit}
+testing: (() => new baz.BazElement("someName"))
+result = (() => new baz.BazElement{baz.BazElement}{(name: <?>)baz.BazElement}("someName"{java.lang.String("someName")}){baz.BazElement}){() => baz.BazElement}
+testing: ((x: Int) => x.$plus(ys.length))
+result = ((x: Int) => x.+{(x: <?>)Int}(ys.length{Int}){Int}){Int => Int}