diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-02-12 16:06:19 -0800 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2013-02-12 16:06:19 -0800 |
commit | 76f167388a42e9bb8b72645d87bcb408b6981576 (patch) | |
tree | 55b62a8e1bf9d5bc908c757c2fe05e9f26ff1cf2 /test/files/pos | |
parent | 14048023a1deba540502da96663deca6ca226bf6 (diff) | |
parent | f51ed74aa3aa142c8aa9d5f9d03e0c244737f66e (diff) | |
download | scala-76f167388a42e9bb8b72645d87bcb408b6981576.tar.gz scala-76f167388a42e9bb8b72645d87bcb408b6981576.tar.bz2 scala-76f167388a42e9bb8b72645d87bcb408b6981576.zip |
Merge remote-tracking branch 'scala/2.10.x' into patmat-refactor-master
Conflicts:
src/compiler/scala/tools/nsc/typechecker/Implicits.scala
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t6225.scala | 20 | ||||
-rw-r--r-- | test/files/pos/t6514.scala | 11 |
2 files changed, 31 insertions, 0 deletions
diff --git a/test/files/pos/t6225.scala b/test/files/pos/t6225.scala new file mode 100644 index 0000000000..d3d30d9e16 --- /dev/null +++ b/test/files/pos/t6225.scala @@ -0,0 +1,20 @@ + +package library.x { + class X { + class Foo + implicit val foo: Foo = new Foo + } +} +package library { + package object y extends library.x.X +} + +object ko { + import library.y.{Foo, foo} + implicitly[Foo] +} + +object ko2 { + import library.y._ + implicitly[Foo] +} diff --git a/test/files/pos/t6514.scala b/test/files/pos/t6514.scala new file mode 100644 index 0000000000..7c58605d39 --- /dev/null +++ b/test/files/pos/t6514.scala @@ -0,0 +1,11 @@ +object Test { + def e(msg: String) = new Exception(msg) + + // this code ain't dead. + def a(b: Boolean) = { + b match { + case true => throw e("true") + case false => throw e("false") + } + } +} |