summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2009-11-20 18:17:13 +0000
committerAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2009-11-20 18:17:13 +0000
commitcc4cd00e583f0fe3cf4da95aa58fc25ef28d30ff (patch)
tree83ce289aa954c741a4b869f65785022c39eed753
parente78864041f80ae25ba0c8d281188068cd1355a98 (diff)
downloadscala-cc4cd00e583f0fe3cf4da95aa58fc25ef28d30ff.tar.gz
scala-cc4cd00e583f0fe3cf4da95aa58fc25ef28d30ff.tar.bz2
scala-cc4cd00e583f0fe3cf4da95aa58fc25ef28d30ff.zip
Trying to get the test to pass on the server.
-rw-r--r--test/files/run/SymbolsTest.scala19
1 files changed, 18 insertions, 1 deletions
diff --git a/test/files/run/SymbolsTest.scala b/test/files/run/SymbolsTest.scala
index 0147c6b838..53caa5e62f 100644
--- a/test/files/run/SymbolsTest.scala
+++ b/test/files/run/SymbolsTest.scala
@@ -131,14 +131,31 @@ object Test {
assert(lst(90) == 'lsym90)
}
- def testAnonymous { // TODO complains classdef can't be found for some reason, runs fine in my case
+ def testAnonymous { // TODO complaints classdef can't be found for some reason, runs fine in my case
// val anon = () => {
// val simba = 'smba
// simba
// }
+ // val an2 = () => {
+ // object nested {
+ // val m = 'mfsa
+ // }
+ // nested.m
+ // }
+ // val an3 = () => {
+ // object nested {
+ // val f = () => {
+ // 'layered
+ // }
+ // def gets = f()
+ // }
+ // nested.gets
+ // }
// val inner = new Inner
// assert(anon() == inner.simba)
// assert(anon().toString == "'smba")
+ // assert(an2() == 'mfsa)
+ // assert(an3() == Symbol("layered" + ""))
}
def testNestedObject {