diff options
author | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2014-11-21 16:47:44 +0100 |
---|---|---|
committer | Grzegorz Kossakowski <grzegorz.kossakowski@gmail.com> | 2014-11-21 16:47:44 +0100 |
commit | 3f08b0967fb1d68466aed2182c7451dee7715be3 (patch) | |
tree | 1560509944959bf3f3c10347c78607a4cca653a4 /test/files/pos/t7596/B_2.scala | |
parent | 57f36ba4d3029b7a217d39b44f4ee8989fb42aaa (diff) | |
parent | 652abbacf7b913ef87474df4bcce4fe90aec24a1 (diff) | |
download | scala-3f08b0967fb1d68466aed2182c7451dee7715be3.tar.gz scala-3f08b0967fb1d68466aed2182c7451dee7715be3.tar.bz2 scala-3f08b0967fb1d68466aed2182c7451dee7715be3.zip |
Merge pull request #4099 from retronym/ticket/7596
SI-7596 Curtail overloaded symbols during unpickling
Diffstat (limited to 'test/files/pos/t7596/B_2.scala')
-rw-r--r-- | test/files/pos/t7596/B_2.scala | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/files/pos/t7596/B_2.scala b/test/files/pos/t7596/B_2.scala new file mode 100644 index 0000000000..977e5c8bd1 --- /dev/null +++ b/test/files/pos/t7596/B_2.scala @@ -0,0 +1,19 @@ +object Test { + locally { + Sites: Config.driver.Table + } +} + +// Under separate compilation, the pickler is foiled by the +// overloaded term `Config.driver`, and results in: + +// qbin/scalac test/files/pos/t7596/A_1.scala && qbin/scalac -explaintypes test/files/pos/t7596/B_2.scala +// test/files/pos/t7596/B_2.scala:3: error: type mismatch; +// found : Sites.type +// required: Config.driver.Table +// Sites: Config.driver.Table +// ^ +// Sites.type <: Config.driver.Table? +// Driver.this.type = Config.driver.type? +// false +// false
\ No newline at end of file |