diff options
author | Paul Phillips <paulp@improving.org> | 2013-06-09 16:35:56 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-06-09 16:35:56 -0700 |
commit | 16c31f4923b3714d2780f0a494b3da07c1ac12bc (patch) | |
tree | b1c228c1e7a17a58c214c45caa2f052a9e091dad /test | |
parent | 27727048133f69de2655fbea92f3083f744ceaa9 (diff) | |
parent | 86e6e9290a403ea852c33ca0901bdfc71bce1d67 (diff) | |
download | scala-16c31f4923b3714d2780f0a494b3da07c1ac12bc.tar.gz scala-16c31f4923b3714d2780f0a494b3da07c1ac12bc.tar.bz2 scala-16c31f4923b3714d2780f0a494b3da07c1ac12bc.zip |
Merge pull request #2621 from retronym/ticket/7264
SI-7264 Initialize owner when searching for companion.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/pos/t7264/A_1.scala | 11 | ||||
-rw-r--r-- | test/files/pos/t7264/B_2.scala | 7 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/files/pos/t7264/A_1.scala b/test/files/pos/t7264/A_1.scala new file mode 100644 index 0000000000..044d0110a2 --- /dev/null +++ b/test/files/pos/t7264/A_1.scala @@ -0,0 +1,11 @@ +object Foo { + object Values { + implicit def fromInt(x: Int): Values = ??? + } + trait Values +} +final class Foo(name: String) { + def bar(values: Foo.Values): Bar = ??? +} + +trait Bar diff --git a/test/files/pos/t7264/B_2.scala b/test/files/pos/t7264/B_2.scala new file mode 100644 index 0000000000..869c51481d --- /dev/null +++ b/test/files/pos/t7264/B_2.scala @@ -0,0 +1,7 @@ +object Test { + // if the following line is uncommented, things compile + // type X = Foo.Values + + + def foo(f: Foo) = f.bar(0 /* : Foo.Values */) +} |