diff options
author | Martin Odersky <odersky@gmail.com> | 2006-09-12 10:18:33 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2006-09-12 10:18:33 +0000 |
commit | dc97215ec989aa4739c18aa74fa8f2ead78402f4 (patch) | |
tree | 3239a9bc794542f9a9770a95c884e1e8b65b68aa /test/files/run | |
parent | 7165e8d40d3abede0e83acb1bd8419708b44ded6 (diff) | |
download | scala-dc97215ec989aa4739c18aa74fa8f2ead78402f4.tar.gz scala-dc97215ec989aa4739c18aa74fa8f2ead78402f4.tar.bz2 scala-dc97215ec989aa4739c18aa74fa8f2ead78402f4.zip |
fixes to ExplicitOuter to pass test suite
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/implicits.check | 2 | ||||
-rwxr-xr-x | test/files/run/implicits.scala | 25 |
2 files changed, 27 insertions, 0 deletions
diff --git a/test/files/run/implicits.check b/test/files/run/implicits.check new file mode 100644 index 0000000000..010571589c --- /dev/null +++ b/test/files/run/implicits.check @@ -0,0 +1,2 @@ +OK +[2] diff --git a/test/files/run/implicits.scala b/test/files/run/implicits.scala new file mode 100755 index 0000000000..c45badc49f --- /dev/null +++ b/test/files/run/implicits.scala @@ -0,0 +1,25 @@ +object A { + object B { + implicit def int2string(x: int) = "["+x.toString+"]" + } +} + +class C(x: String) { + + class Inner { + } + + object Inner { + val s: String = x + implicit def Inner2String(x: Inner): String = s + } +} + +object Test extends Application { + import A.B._ + val c = new C("OK") + val i = new c.Inner + val s: String = i + Console.println(s) + Console.println(2: String) +} |