From cc4cd00e583f0fe3cf4da95aa58fc25ef28d30ff Mon Sep 17 00:00:00 2001 From: Aleksandar Pokopec Date: Fri, 20 Nov 2009 18:17:13 +0000 Subject: Trying to get the test to pass on the server. --- test/files/run/SymbolsTest.scala | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'test/files/run') 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 { -- cgit v1.2.3