summaryrefslogtreecommitdiff
path: root/test/files/pos
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-06-10 06:20:37 -0400
committerJason Zaugg <jzaugg@gmail.com>2013-06-10 06:20:37 -0400
commit549cb905aa6a4facb3cb12628a76ab8273658170 (patch)
tree0213972eb9f2fb3f82472063873bf90e18f0446c /test/files/pos
parent16c31f4923b3714d2780f0a494b3da07c1ac12bc (diff)
parente3c318649c4318412c8d7e3cbee4689489f6ccb1 (diff)
downloadscala-549cb905aa6a4facb3cb12628a76ab8273658170.tar.gz
scala-549cb905aa6a4facb3cb12628a76ab8273658170.tar.bz2
scala-549cb905aa6a4facb3cb12628a76ab8273658170.zip
Merge branch '2.10.x' into topic/merge-v2.10.2-RC1-35-ga54d86b-to-master
Conflicts: src/partest/scala/tools/partest/DirectTest.scala
Diffstat (limited to 'test/files/pos')
-rw-r--r--test/files/pos/t7505.scala16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/files/pos/t7505.scala b/test/files/pos/t7505.scala
new file mode 100644
index 0000000000..3e1e6ab8b4
--- /dev/null
+++ b/test/files/pos/t7505.scala
@@ -0,0 +1,16 @@
+import scala.language.reflectiveCalls
+
+case class ContextProperty(value: Any) {
+ type HasToInt = { def toInt:Int }
+
+ def toInt: Int = value match {
+ case n: HasToInt => n.toInt
+ }
+}
+
+// was:
+// error:7: error during expansion of this match (this is a scalac bug).
+// The underlying error was: type mismatch;
+// found : Boolean(true)
+// required: AnyRef
+// def toInt: Int = value match { \ No newline at end of file