summaryrefslogtreecommitdiff
path: root/test/files/presentation/t7548b/src/Foo.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-12-02 03:57:44 -0800
committerJason Zaugg <jzaugg@gmail.com>2013-12-02 03:57:44 -0800
commit7c1d1149291e1b83c96a0f6954144b9e97c030ea (patch)
tree83871119f84c7b8eeab0788d0fb928959c103e01 /test/files/presentation/t7548b/src/Foo.scala
parentda7395016ca8410fbabf5418288f7275ccaf17a8 (diff)
parent02308c96910a76a09c2654db304a0696c0b603af (diff)
downloadscala-7c1d1149291e1b83c96a0f6954144b9e97c030ea.tar.gz
scala-7c1d1149291e1b83c96a0f6954144b9e97c030ea.tar.bz2
scala-7c1d1149291e1b83c96a0f6954144b9e97c030ea.zip
Merge pull request #3208 from dotta/si-7548-on-2.10
askTypeAt returns the same type for full/ targeted typecheck (2.10.x)
Diffstat (limited to 'test/files/presentation/t7548b/src/Foo.scala')
-rw-r--r--test/files/presentation/t7548b/src/Foo.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/presentation/t7548b/src/Foo.scala b/test/files/presentation/t7548b/src/Foo.scala
new file mode 100644
index 0000000000..5cf0a4ef4e
--- /dev/null
+++ b/test/files/presentation/t7548b/src/Foo.scala
@@ -0,0 +1,12 @@
+import language._
+
+object Foo {
+ object I {
+ def +(other: I.type) : Unit = ()
+ }
+ object BI {
+ def +(other: BI.type): Unit = ()
+ }
+ implicit def I2BI(i: I.type): BI.type = BI
+ I.+(BI)
+}